-- ----------------------------
-- Table structure for act_evt_log
-- ----------------------------
DROP TABLE IF EXISTS `act_evt_log`;
CREATE TABLE `act_evt_log` (
  `LOG_NR_` bigint NOT NULL AUTO_INCREMENT,
  `TYPE_` varchar(64)  DEFAULT NULL,
  `PROC_DEF_ID_` varchar(64)  DEFAULT NULL,
  `PROC_INST_ID_` varchar(64)  DEFAULT NULL,
  `EXECUTION_ID_` varchar(64)  DEFAULT NULL,
  `TASK_ID_` varchar(64)  DEFAULT NULL,
  `TIME_STAMP_` timestamp(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3),
  `USER_ID_` varchar(255)  DEFAULT NULL,
  `DATA_` longblob,
  `LOCK_OWNER_` varchar(255)  DEFAULT NULL,
  `LOCK_TIME_` timestamp(3) NULL DEFAULT NULL,
  `IS_PROCESSED_` tinyint DEFAULT '0',
  PRIMARY KEY (`LOG_NR_`) USING BTREE
) ENGINE=InnoDB  ;

-- ----------------------------
-- Table structure for act_ge_bytearray
-- ----------------------------
DROP TABLE IF EXISTS `act_ge_bytearray`;
CREATE TABLE `act_ge_bytearray` (
  `ID_` varchar(64)  NOT NULL,
  `REV_` int DEFAULT NULL,
  `NAME_` varchar(255)  DEFAULT NULL,
  `DEPLOYMENT_ID_` varchar(64)  DEFAULT NULL,
  `BYTES_` longblob,
  `GENERATED_` tinyint DEFAULT NULL,
  PRIMARY KEY (`ID_`) USING BTREE,
  KEY `ACT_FK_BYTEARR_DEPL` (`DEPLOYMENT_ID_`) USING BTREE,
  CONSTRAINT `ACT_FK_BYTEARR_DEPL` FOREIGN KEY (`DEPLOYMENT_ID_`) REFERENCES `act_re_deployment` (`ID_`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE=InnoDB  ;

-- ----------------------------
-- Records of act_ge_bytearray
-- ----------------------------
BEGIN;
COMMIT;

-- ----------------------------
-- Table structure for act_ge_property
-- ----------------------------
DROP TABLE IF EXISTS `act_ge_property`;
CREATE TABLE `act_ge_property` (
  `NAME_` varchar(64)  NOT NULL,
  `VALUE_` varchar(300)  DEFAULT NULL,
  `REV_` int DEFAULT NULL,
  PRIMARY KEY (`NAME_`) USING BTREE
) ENGINE=InnoDB  ;

-- ----------------------------
-- Records of act_ge_property
-- ----------------------------
BEGIN;
INSERT INTO `act_ge_property` VALUES ('batch.schema.version', '6.7.2.0', 1);
INSERT INTO `act_ge_property` VALUES ('cfg.execution-related-entities-count', 'true', 1);
INSERT INTO `act_ge_property` VALUES ('cfg.task-related-entities-count', 'true', 1);
INSERT INTO `act_ge_property` VALUES ('common.schema.version', '6.7.2.0', 1);
INSERT INTO `act_ge_property` VALUES ('entitylink.schema.version', '6.7.2.0', 1);
INSERT INTO `act_ge_property` VALUES ('eventsubscription.schema.version', '6.7.2.0', 1);
INSERT INTO `act_ge_property` VALUES ('identitylink.schema.version', '6.7.2.0', 1);
INSERT INTO `act_ge_property` VALUES ('job.schema.version', '6.7.2.0', 1);
INSERT INTO `act_ge_property` VALUES ('next.dbid', '1', 1);
INSERT INTO `act_ge_property` VALUES ('schema.history', 'create(6.7.2.0)', 1);
INSERT INTO `act_ge_property` VALUES ('schema.version', '6.7.2.0', 1);
INSERT INTO `act_ge_property` VALUES ('task.schema.version', '6.7.2.0', 1);
INSERT INTO `act_ge_property` VALUES ('variable.schema.version', '6.7.2.0', 1);
COMMIT;

-- ----------------------------
-- Table structure for act_hi_actinst
-- ----------------------------
DROP TABLE IF EXISTS `act_hi_actinst`;
CREATE TABLE `act_hi_actinst` (
  `ID_` varchar(64)  NOT NULL,
  `REV_` int DEFAULT '1',
  `PROC_DEF_ID_` varchar(64)  NOT NULL,
  `PROC_INST_ID_` varchar(64)  NOT NULL,
  `EXECUTION_ID_` varchar(64)  NOT NULL,
  `ACT_ID_` varchar(255)  NOT NULL,
  `TASK_ID_` varchar(64)  DEFAULT NULL,
  `CALL_PROC_INST_ID_` varchar(64)  DEFAULT NULL,
  `ACT_NAME_` varchar(255)  DEFAULT NULL,
  `ACT_TYPE_` varchar(255)  NOT NULL,
  `ASSIGNEE_` varchar(255)  DEFAULT NULL,
  `START_TIME_` datetime(3) NOT NULL,
  `END_TIME_` datetime(3) DEFAULT NULL,
  `TRANSACTION_ORDER_` int DEFAULT NULL,
  `DURATION_` bigint DEFAULT NULL,
  `DELETE_REASON_` varchar(4000)  DEFAULT NULL,
  `TENANT_ID_` varchar(255)  DEFAULT '',
  PRIMARY KEY (`ID_`) USING BTREE,
  KEY `ACT_IDX_HI_ACT_INST_START` (`START_TIME_`) USING BTREE,
  KEY `ACT_IDX_HI_ACT_INST_END` (`END_TIME_`) USING BTREE,
  KEY `ACT_IDX_HI_ACT_INST_PROCINST` (`PROC_INST_ID_`,`ACT_ID_`) USING BTREE,
  KEY `ACT_IDX_HI_ACT_INST_EXEC` (`EXECUTION_ID_`,`ACT_ID_`) USING BTREE
) ENGINE=InnoDB  ;

-- ----------------------------
-- Records of act_hi_actinst
-- ----------------------------
BEGIN;
COMMIT;

-- ----------------------------
-- Table structure for act_hi_attachment
-- ----------------------------
DROP TABLE IF EXISTS `act_hi_attachment`;
CREATE TABLE `act_hi_attachment` (
  `ID_` varchar(64)  NOT NULL,
  `REV_` int DEFAULT NULL,
  `USER_ID_` varchar(255)  DEFAULT NULL,
  `NAME_` varchar(255)  DEFAULT NULL,
  `DESCRIPTION_` varchar(4000)  DEFAULT NULL,
  `TYPE_` varchar(255)  DEFAULT NULL,
  `TASK_ID_` varchar(64)  DEFAULT NULL,
  `PROC_INST_ID_` varchar(64)  DEFAULT NULL,
  `URL_` varchar(4000)  DEFAULT NULL,
  `CONTENT_ID_` varchar(64)  DEFAULT NULL,
  `TIME_` datetime(3) DEFAULT NULL,
  PRIMARY KEY (`ID_`) USING BTREE
) ENGINE=InnoDB  ;

-- ----------------------------
-- Records of act_hi_attachment
-- ----------------------------
BEGIN;
COMMIT;

-- ----------------------------
-- Table structure for act_hi_comment
-- ----------------------------
DROP TABLE IF EXISTS `act_hi_comment`;
CREATE TABLE `act_hi_comment` (
  `ID_` varchar(64)  NOT NULL,
  `TYPE_` varchar(255)  DEFAULT NULL,
  `TIME_` datetime(3) NOT NULL,
  `USER_ID_` varchar(255)  DEFAULT NULL,
  `TASK_ID_` varchar(64)  DEFAULT NULL,
  `PROC_INST_ID_` varchar(64)  DEFAULT NULL,
  `ACTION_` varchar(255)  DEFAULT NULL,
  `MESSAGE_` varchar(4000)  DEFAULT NULL,
  `FULL_MSG_` longblob,
  PRIMARY KEY (`ID_`) USING BTREE
) ENGINE=InnoDB  ;

-- ----------------------------
-- Records of act_hi_comment
-- ----------------------------
BEGIN;
COMMIT;

-- ----------------------------
-- Table structure for act_hi_detail
-- ----------------------------
DROP TABLE IF EXISTS `act_hi_detail`;
CREATE TABLE `act_hi_detail` (
  `ID_` varchar(64)  NOT NULL,
  `TYPE_` varchar(255)  NOT NULL,
  `PROC_INST_ID_` varchar(64)  DEFAULT NULL,
  `EXECUTION_ID_` varchar(64)  DEFAULT NULL,
  `TASK_ID_` varchar(64)  DEFAULT NULL,
  `ACT_INST_ID_` varchar(64)  DEFAULT NULL,
  `NAME_` varchar(255)  NOT NULL,
  `VAR_TYPE_` varchar(255)  DEFAULT NULL,
  `REV_` int DEFAULT NULL,
  `TIME_` datetime(3) NOT NULL,
  `BYTEARRAY_ID_` varchar(64)  DEFAULT NULL,
  `DOUBLE_` double DEFAULT NULL,
  `LONG_` bigint DEFAULT NULL,
  `TEXT_` varchar(4000)  DEFAULT NULL,
  `TEXT2_` varchar(4000)  DEFAULT NULL,
  PRIMARY KEY (`ID_`) USING BTREE,
  KEY `ACT_IDX_HI_DETAIL_PROC_INST` (`PROC_INST_ID_`) USING BTREE,
  KEY `ACT_IDX_HI_DETAIL_ACT_INST` (`ACT_INST_ID_`) USING BTREE,
  KEY `ACT_IDX_HI_DETAIL_TIME` (`TIME_`) USING BTREE,
  KEY `ACT_IDX_HI_DETAIL_NAME` (`NAME_`) USING BTREE,
  KEY `ACT_IDX_HI_DETAIL_TASK_ID` (`TASK_ID_`) USING BTREE
) ENGINE=InnoDB  ;

-- ----------------------------
-- Records of act_hi_detail
-- ----------------------------
BEGIN;
COMMIT;

-- ----------------------------
-- Table structure for act_hi_entitylink
-- ----------------------------
DROP TABLE IF EXISTS `act_hi_entitylink`;
CREATE TABLE `act_hi_entitylink` (
  `ID_` varchar(64)  NOT NULL,
  `LINK_TYPE_` varchar(255)  DEFAULT NULL,
  `CREATE_TIME_` datetime(3) DEFAULT NULL,
  `SCOPE_ID_` varchar(255)  DEFAULT NULL,
  `SUB_SCOPE_ID_` varchar(255)  DEFAULT NULL,
  `SCOPE_TYPE_` varchar(255)  DEFAULT NULL,
  `SCOPE_DEFINITION_ID_` varchar(255)  DEFAULT NULL,
  `PARENT_ELEMENT_ID_` varchar(255)  DEFAULT NULL,
  `REF_SCOPE_ID_` varchar(255)  DEFAULT NULL,
  `REF_SCOPE_TYPE_` varchar(255)  DEFAULT NULL,
  `REF_SCOPE_DEFINITION_ID_` varchar(255)  DEFAULT NULL,
  `ROOT_SCOPE_ID_` varchar(255)  DEFAULT NULL,
  `ROOT_SCOPE_TYPE_` varchar(255)  DEFAULT NULL,
  `HIERARCHY_TYPE_` varchar(255)  DEFAULT NULL,
  PRIMARY KEY (`ID_`) USING BTREE,
  KEY `ACT_IDX_HI_ENT_LNK_SCOPE` (`SCOPE_ID_`,`SCOPE_TYPE_`,`LINK_TYPE_`) USING BTREE,
  KEY `ACT_IDX_HI_ENT_LNK_REF_SCOPE` (`REF_SCOPE_ID_`,`REF_SCOPE_TYPE_`,`LINK_TYPE_`) USING BTREE,
  KEY `ACT_IDX_HI_ENT_LNK_ROOT_SCOPE` (`ROOT_SCOPE_ID_`,`ROOT_SCOPE_TYPE_`,`LINK_TYPE_`) USING BTREE,
  KEY `ACT_IDX_HI_ENT_LNK_SCOPE_DEF` (`SCOPE_DEFINITION_ID_`,`SCOPE_TYPE_`,`LINK_TYPE_`) USING BTREE
) ENGINE=InnoDB  ;

-- ----------------------------
-- Records of act_hi_entitylink
-- ----------------------------
BEGIN;
COMMIT;

-- ----------------------------
-- Table structure for act_hi_identitylink
-- ----------------------------
DROP TABLE IF EXISTS `act_hi_identitylink`;
CREATE TABLE `act_hi_identitylink` (
  `ID_` varchar(64)  NOT NULL,
  `GROUP_ID_` varchar(255)  DEFAULT NULL,
  `TYPE_` varchar(255)  DEFAULT NULL,
  `USER_ID_` varchar(255)  DEFAULT NULL,
  `TASK_ID_` varchar(64)  DEFAULT NULL,
  `CREATE_TIME_` datetime(3) DEFAULT NULL,
  `PROC_INST_ID_` varchar(64)  DEFAULT NULL,
  `SCOPE_ID_` varchar(255)  DEFAULT NULL,
  `SUB_SCOPE_ID_` varchar(255)  DEFAULT NULL,
  `SCOPE_TYPE_` varchar(255)  DEFAULT NULL,
  `SCOPE_DEFINITION_ID_` varchar(255)  DEFAULT NULL,
  PRIMARY KEY (`ID_`) USING BTREE,
  KEY `ACT_IDX_HI_IDENT_LNK_USER` (`USER_ID_`) USING BTREE,
  KEY `ACT_IDX_HI_IDENT_LNK_SCOPE` (`SCOPE_ID_`,`SCOPE_TYPE_`) USING BTREE,
  KEY `ACT_IDX_HI_IDENT_LNK_SUB_SCOPE` (`SUB_SCOPE_ID_`,`SCOPE_TYPE_`) USING BTREE,
  KEY `ACT_IDX_HI_IDENT_LNK_SCOPE_DEF` (`SCOPE_DEFINITION_ID_`,`SCOPE_TYPE_`) USING BTREE,
  KEY `ACT_IDX_HI_IDENT_LNK_TASK` (`TASK_ID_`) USING BTREE,
  KEY `ACT_IDX_HI_IDENT_LNK_PROCINST` (`PROC_INST_ID_`) USING BTREE
) ENGINE=InnoDB  ;

-- ----------------------------
-- Records of act_hi_identitylink
-- ----------------------------
BEGIN;
COMMIT;

-- ----------------------------
-- Table structure for act_hi_procinst
-- ----------------------------
DROP TABLE IF EXISTS `act_hi_procinst`;
CREATE TABLE `act_hi_procinst` (
  `ID_` varchar(64)  NOT NULL,
  `REV_` int DEFAULT '1',
  `PROC_INST_ID_` varchar(64)  NOT NULL,
  `BUSINESS_KEY_` varchar(255)  DEFAULT NULL,
  `PROC_DEF_ID_` varchar(64)  NOT NULL,
  `START_TIME_` datetime(3) NOT NULL,
  `END_TIME_` datetime(3) DEFAULT NULL,
  `DURATION_` bigint DEFAULT NULL,
  `START_USER_ID_` varchar(255)  DEFAULT NULL,
  `START_ACT_ID_` varchar(255)  DEFAULT NULL,
  `END_ACT_ID_` varchar(255)  DEFAULT NULL,
  `SUPER_PROCESS_INSTANCE_ID_` varchar(64)  DEFAULT NULL,
  `DELETE_REASON_` varchar(4000)  DEFAULT NULL,
  `TENANT_ID_` varchar(255)  DEFAULT '',
  `NAME_` varchar(255)  DEFAULT NULL,
  `CALLBACK_ID_` varchar(255)  DEFAULT NULL,
  `CALLBACK_TYPE_` varchar(255)  DEFAULT NULL,
  `REFERENCE_ID_` varchar(255)  DEFAULT NULL,
  `REFERENCE_TYPE_` varchar(255)  DEFAULT NULL,
  `PROPAGATED_STAGE_INST_ID_` varchar(255)  DEFAULT NULL,
  `BUSINESS_STATUS_` varchar(255)  DEFAULT NULL,
  PRIMARY KEY (`ID_`) USING BTREE,
  UNIQUE KEY `PROC_INST_ID_` (`PROC_INST_ID_`) USING BTREE,
  KEY `ACT_IDX_HI_PRO_INST_END` (`END_TIME_`) USING BTREE,
  KEY `ACT_IDX_HI_PRO_I_BUSKEY` (`BUSINESS_KEY_`) USING BTREE
) ENGINE=InnoDB  ;

-- ----------------------------
-- Records of act_hi_procinst
-- ----------------------------
BEGIN;
COMMIT;

-- ----------------------------
-- Table structure for act_hi_taskinst
-- ----------------------------
DROP TABLE IF EXISTS `act_hi_taskinst`;
CREATE TABLE `act_hi_taskinst` (
  `ID_` varchar(64)  NOT NULL,
  `REV_` int DEFAULT '1',
  `PROC_DEF_ID_` varchar(64)  DEFAULT NULL,
  `TASK_DEF_ID_` varchar(64)  DEFAULT NULL,
  `TASK_DEF_KEY_` varchar(255)  DEFAULT NULL,
  `PROC_INST_ID_` varchar(64)  DEFAULT NULL,
  `EXECUTION_ID_` varchar(64)  DEFAULT NULL,
  `SCOPE_ID_` varchar(255)  DEFAULT NULL,
  `SUB_SCOPE_ID_` varchar(255)  DEFAULT NULL,
  `SCOPE_TYPE_` varchar(255)  DEFAULT NULL,
  `SCOPE_DEFINITION_ID_` varchar(255)  DEFAULT NULL,
  `PROPAGATED_STAGE_INST_ID_` varchar(255)  DEFAULT NULL,
  `NAME_` varchar(255)  DEFAULT NULL,
  `PARENT_TASK_ID_` varchar(64)  DEFAULT NULL,
  `DESCRIPTION_` varchar(4000)  DEFAULT NULL,
  `OWNER_` varchar(255)  DEFAULT NULL,
  `ASSIGNEE_` varchar(255)  DEFAULT NULL,
  `START_TIME_` datetime(3) NOT NULL,
  `CLAIM_TIME_` datetime(3) DEFAULT NULL,
  `END_TIME_` datetime(3) DEFAULT NULL,
  `DURATION_` bigint DEFAULT NULL,
  `DELETE_REASON_` varchar(4000)  DEFAULT NULL,
  `PRIORITY_` int DEFAULT NULL,
  `DUE_DATE_` datetime(3) DEFAULT NULL,
  `FORM_KEY_` varchar(255)  DEFAULT NULL,
  `CATEGORY_` varchar(255)  DEFAULT NULL,
  `TENANT_ID_` varchar(255)  DEFAULT '',
  `LAST_UPDATED_TIME_` datetime(3) DEFAULT NULL,
  PRIMARY KEY (`ID_`) USING BTREE,
  KEY `ACT_IDX_HI_TASK_SCOPE` (`SCOPE_ID_`,`SCOPE_TYPE_`) USING BTREE,
  KEY `ACT_IDX_HI_TASK_SUB_SCOPE` (`SUB_SCOPE_ID_`,`SCOPE_TYPE_`) USING BTREE,
  KEY `ACT_IDX_HI_TASK_SCOPE_DEF` (`SCOPE_DEFINITION_ID_`,`SCOPE_TYPE_`) USING BTREE,
  KEY `ACT_IDX_HI_TASK_INST_PROCINST` (`PROC_INST_ID_`) USING BTREE
) ENGINE=InnoDB  ;

-- ----------------------------
-- Records of act_hi_taskinst
-- ----------------------------
BEGIN;
COMMIT;

-- ----------------------------
-- Table structure for act_hi_tsk_log
-- ----------------------------
DROP TABLE IF EXISTS `act_hi_tsk_log`;
CREATE TABLE `act_hi_tsk_log` (
  `ID_` bigint NOT NULL AUTO_INCREMENT,
  `TYPE_` varchar(64)  DEFAULT NULL,
  `TASK_ID_` varchar(64)  NOT NULL,
  `TIME_STAMP_` timestamp(3) NOT NULL,
  `USER_ID_` varchar(255)  DEFAULT NULL,
  `DATA_` varchar(4000)  DEFAULT NULL,
  `EXECUTION_ID_` varchar(64)  DEFAULT NULL,
  `PROC_INST_ID_` varchar(64)  DEFAULT NULL,
  `PROC_DEF_ID_` varchar(64)  DEFAULT NULL,
  `SCOPE_ID_` varchar(255)  DEFAULT NULL,
  `SCOPE_DEFINITION_ID_` varchar(255)  DEFAULT NULL,
  `SUB_SCOPE_ID_` varchar(255)  DEFAULT NULL,
  `SCOPE_TYPE_` varchar(255)  DEFAULT NULL,
  `TENANT_ID_` varchar(255)  DEFAULT '',
  PRIMARY KEY (`ID_`) USING BTREE
) ENGINE=InnoDB  ;

-- ----------------------------
-- Records of act_hi_tsk_log
-- ----------------------------
BEGIN;
COMMIT;

-- ----------------------------
-- Table structure for act_hi_varinst
-- ----------------------------
DROP TABLE IF EXISTS `act_hi_varinst`;
CREATE TABLE `act_hi_varinst` (
  `ID_` varchar(64)  NOT NULL,
  `REV_` int DEFAULT '1',
  `PROC_INST_ID_` varchar(64)  DEFAULT NULL,
  `EXECUTION_ID_` varchar(64)  DEFAULT NULL,
  `TASK_ID_` varchar(64)  DEFAULT NULL,
  `NAME_` varchar(255)  NOT NULL,
  `VAR_TYPE_` varchar(100)  DEFAULT NULL,
  `SCOPE_ID_` varchar(255)  DEFAULT NULL,
  `SUB_SCOPE_ID_` varchar(255)  DEFAULT NULL,
  `SCOPE_TYPE_` varchar(255)  DEFAULT NULL,
  `BYTEARRAY_ID_` varchar(64)  DEFAULT NULL,
  `DOUBLE_` double DEFAULT NULL,
  `LONG_` bigint DEFAULT NULL,
  `TEXT_` varchar(4000)  DEFAULT NULL,
  `TEXT2_` varchar(4000)  DEFAULT NULL,
  `CREATE_TIME_` datetime(3) DEFAULT NULL,
  `LAST_UPDATED_TIME_` datetime(3) DEFAULT NULL,
  PRIMARY KEY (`ID_`) USING BTREE,
  KEY `ACT_IDX_HI_PROCVAR_NAME_TYPE` (`NAME_`,`VAR_TYPE_`) USING BTREE,
  KEY `ACT_IDX_HI_VAR_SCOPE_ID_TYPE` (`SCOPE_ID_`,`SCOPE_TYPE_`) USING BTREE,
  KEY `ACT_IDX_HI_VAR_SUB_ID_TYPE` (`SUB_SCOPE_ID_`,`SCOPE_TYPE_`) USING BTREE,
  KEY `ACT_IDX_HI_PROCVAR_PROC_INST` (`PROC_INST_ID_`) USING BTREE,
  KEY `ACT_IDX_HI_PROCVAR_TASK_ID` (`TASK_ID_`) USING BTREE,
  KEY `ACT_IDX_HI_PROCVAR_EXE` (`EXECUTION_ID_`) USING BTREE
) ENGINE=InnoDB  ;

-- ----------------------------
-- Records of act_hi_varinst
-- ----------------------------
BEGIN;
COMMIT;

-- ----------------------------
-- Table structure for act_id_bytearray
-- ----------------------------
DROP TABLE IF EXISTS `act_id_bytearray`;
CREATE TABLE `act_id_bytearray` (
  `ID_` varchar(64)  NOT NULL,
  `REV_` int DEFAULT NULL,
  `NAME_` varchar(255)  DEFAULT NULL,
  `BYTES_` longblob,
  PRIMARY KEY (`ID_`) USING BTREE
) ENGINE=InnoDB  ;

-- ----------------------------
-- Records of act_id_bytearray
-- ----------------------------
BEGIN;
COMMIT;

-- ----------------------------
-- Table structure for act_id_group
-- ----------------------------
DROP TABLE IF EXISTS `act_id_group`;
CREATE TABLE `act_id_group` (
  `ID_` varchar(64)  NOT NULL,
  `REV_` int DEFAULT NULL,
  `NAME_` varchar(255)  DEFAULT NULL,
  `TYPE_` varchar(255)  DEFAULT NULL,
  PRIMARY KEY (`ID_`) USING BTREE
) ENGINE=InnoDB  ;

-- ----------------------------
-- Records of act_id_group
-- ----------------------------
BEGIN;
COMMIT;

-- ----------------------------
-- Table structure for act_id_info
-- ----------------------------
DROP TABLE IF EXISTS `act_id_info`;
CREATE TABLE `act_id_info` (
  `ID_` varchar(64)  NOT NULL,
  `REV_` int DEFAULT NULL,
  `USER_ID_` varchar(64)  DEFAULT NULL,
  `TYPE_` varchar(64)  DEFAULT NULL,
  `KEY_` varchar(255)  DEFAULT NULL,
  `VALUE_` varchar(255)  DEFAULT NULL,
  `PASSWORD_` longblob,
  `PARENT_ID_` varchar(255)  DEFAULT NULL,
  PRIMARY KEY (`ID_`) USING BTREE
) ENGINE=InnoDB  ;

-- ----------------------------
-- Records of act_id_info
-- ----------------------------
BEGIN;
COMMIT;

-- ----------------------------
-- Table structure for act_id_membership
-- ----------------------------
DROP TABLE IF EXISTS `act_id_membership`;
CREATE TABLE `act_id_membership` (
  `USER_ID_` varchar(64)  NOT NULL,
  `GROUP_ID_` varchar(64)  NOT NULL,
  PRIMARY KEY (`USER_ID_`,`GROUP_ID_`) USING BTREE,
  KEY `ACT_FK_MEMB_GROUP` (`GROUP_ID_`) USING BTREE,
  CONSTRAINT `ACT_FK_MEMB_GROUP` FOREIGN KEY (`GROUP_ID_`) REFERENCES `act_id_group` (`ID_`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `ACT_FK_MEMB_USER` FOREIGN KEY (`USER_ID_`) REFERENCES `act_id_user` (`ID_`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE=InnoDB  ;

-- ----------------------------
-- Records of act_id_membership
-- ----------------------------
BEGIN;
COMMIT;

-- ----------------------------
-- Table structure for act_id_priv
-- ----------------------------
DROP TABLE IF EXISTS `act_id_priv`;
CREATE TABLE `act_id_priv` (
  `ID_` varchar(64)  NOT NULL,
  `NAME_` varchar(255)  NOT NULL,
  PRIMARY KEY (`ID_`) USING BTREE,
  UNIQUE KEY `ACT_UNIQ_PRIV_NAME` (`NAME_`) USING BTREE
) ENGINE=InnoDB  ;

-- ----------------------------
-- Records of act_id_priv
-- ----------------------------
BEGIN;
COMMIT;

-- ----------------------------
-- Table structure for act_id_priv_mapping
-- ----------------------------
DROP TABLE IF EXISTS `act_id_priv_mapping`;
CREATE TABLE `act_id_priv_mapping` (
  `ID_` varchar(64)  NOT NULL,
  `PRIV_ID_` varchar(64)  NOT NULL,
  `USER_ID_` varchar(255)  DEFAULT NULL,
  `GROUP_ID_` varchar(255)  DEFAULT NULL,
  PRIMARY KEY (`ID_`) USING BTREE,
  KEY `ACT_FK_PRIV_MAPPING` (`PRIV_ID_`) USING BTREE,
  KEY `ACT_IDX_PRIV_USER` (`USER_ID_`) USING BTREE,
  KEY `ACT_IDX_PRIV_GROUP` (`GROUP_ID_`) USING BTREE,
  CONSTRAINT `ACT_FK_PRIV_MAPPING` FOREIGN KEY (`PRIV_ID_`) REFERENCES `act_id_priv` (`ID_`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE=InnoDB  ;

-- ----------------------------
-- Records of act_id_priv_mapping
-- ----------------------------
BEGIN;
COMMIT;

-- ----------------------------
-- Table structure for act_id_property
-- ----------------------------
DROP TABLE IF EXISTS `act_id_property`;
CREATE TABLE `act_id_property` (
  `NAME_` varchar(64)  NOT NULL,
  `VALUE_` varchar(300)  DEFAULT NULL,
  `REV_` int DEFAULT NULL,
  PRIMARY KEY (`NAME_`) USING BTREE
) ENGINE=InnoDB  ;

-- ----------------------------
-- Records of act_id_property
-- ----------------------------
BEGIN;
INSERT INTO `act_id_property` VALUES ('schema.version', '6.7.2.0', 1);
COMMIT;

-- ----------------------------
-- Table structure for act_id_token
-- ----------------------------
DROP TABLE IF EXISTS `act_id_token`;
CREATE TABLE `act_id_token` (
  `ID_` varchar(64)  NOT NULL,
  `REV_` int DEFAULT NULL,
  `TOKEN_VALUE_` varchar(255)  DEFAULT NULL,
  `TOKEN_DATE_` timestamp(3) NULL DEFAULT NULL,
  `IP_ADDRESS_` varchar(255)  DEFAULT NULL,
  `USER_AGENT_` varchar(255)  DEFAULT NULL,
  `USER_ID_` varchar(255)  DEFAULT NULL,
  `TOKEN_DATA_` varchar(2000)  DEFAULT NULL,
  PRIMARY KEY (`ID_`) USING BTREE
) ENGINE=InnoDB  ;

-- ----------------------------
-- Records of act_id_token
-- ----------------------------
BEGIN;
COMMIT;

-- ----------------------------
-- Table structure for act_id_user
-- ----------------------------
DROP TABLE IF EXISTS `act_id_user`;
CREATE TABLE `act_id_user` (
  `ID_` varchar(64)  NOT NULL,
  `REV_` int DEFAULT NULL,
  `FIRST_` varchar(255)  DEFAULT NULL,
  `LAST_` varchar(255)  DEFAULT NULL,
  `DISPLAY_NAME_` varchar(255)  DEFAULT NULL,
  `EMAIL_` varchar(255)  DEFAULT NULL,
  `PWD_` varchar(255)  DEFAULT NULL,
  `PICTURE_ID_` varchar(64)  DEFAULT NULL,
  `TENANT_ID_` varchar(255)  DEFAULT '',
  PRIMARY KEY (`ID_`) USING BTREE
) ENGINE=InnoDB  ;

-- ----------------------------
-- Records of act_id_user
-- ----------------------------
BEGIN;
COMMIT;

-- ----------------------------
-- Table structure for act_procdef_info
-- ----------------------------
DROP TABLE IF EXISTS `act_procdef_info`;
CREATE TABLE `act_procdef_info` (
  `ID_` varchar(64)  NOT NULL,
  `PROC_DEF_ID_` varchar(64)  NOT NULL,
  `REV_` int DEFAULT NULL,
  `INFO_JSON_ID_` varchar(64)  DEFAULT NULL,
  PRIMARY KEY (`ID_`) USING BTREE,
  UNIQUE KEY `ACT_UNIQ_INFO_PROCDEF` (`PROC_DEF_ID_`) USING BTREE,
  KEY `ACT_IDX_INFO_PROCDEF` (`PROC_DEF_ID_`) USING BTREE,
  KEY `ACT_FK_INFO_JSON_BA` (`INFO_JSON_ID_`) USING BTREE,
  CONSTRAINT `ACT_FK_INFO_JSON_BA` FOREIGN KEY (`INFO_JSON_ID_`) REFERENCES `act_ge_bytearray` (`ID_`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `ACT_FK_INFO_PROCDEF` FOREIGN KEY (`PROC_DEF_ID_`) REFERENCES `act_re_procdef` (`ID_`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE=InnoDB  ;

-- ----------------------------
-- Records of act_procdef_info
-- ----------------------------
BEGIN;
COMMIT;

-- ----------------------------
-- Table structure for act_re_deployment
-- ----------------------------
DROP TABLE IF EXISTS `act_re_deployment`;
CREATE TABLE `act_re_deployment` (
  `ID_` varchar(64)  NOT NULL,
  `NAME_` varchar(255)  DEFAULT NULL,
  `CATEGORY_` varchar(255)  DEFAULT NULL,
  `KEY_` varchar(255)  DEFAULT NULL,
  `TENANT_ID_` varchar(255)  DEFAULT '',
  `DEPLOY_TIME_` timestamp(3) NULL DEFAULT NULL,
  `DERIVED_FROM_` varchar(64)  DEFAULT NULL,
  `DERIVED_FROM_ROOT_` varchar(64)  DEFAULT NULL,
  `PARENT_DEPLOYMENT_ID_` varchar(255)  DEFAULT NULL,
  `ENGINE_VERSION_` varchar(255)  DEFAULT NULL,
  PRIMARY KEY (`ID_`) USING BTREE
) ENGINE=InnoDB  ;

-- ----------------------------
-- Records of act_re_deployment
-- ----------------------------
BEGIN;
COMMIT;

-- ----------------------------
-- Table structure for act_re_model
-- ----------------------------
DROP TABLE IF EXISTS `act_re_model`;
CREATE TABLE `act_re_model` (
  `ID_` varchar(64)  NOT NULL,
  `REV_` int DEFAULT NULL,
  `NAME_` varchar(255)  DEFAULT NULL,
  `KEY_` varchar(255)  DEFAULT NULL,
  `CATEGORY_` varchar(255)  DEFAULT NULL,
  `CREATE_TIME_` timestamp(3) NULL DEFAULT NULL,
  `LAST_UPDATE_TIME_` timestamp(3) NULL DEFAULT NULL,
  `VERSION_` int DEFAULT NULL,
  `META_INFO_` varchar(4000)  DEFAULT NULL,
  `DEPLOYMENT_ID_` varchar(64)  DEFAULT NULL,
  `EDITOR_SOURCE_VALUE_ID_` varchar(64)  DEFAULT NULL,
  `EDITOR_SOURCE_EXTRA_VALUE_ID_` varchar(64)  DEFAULT NULL,
  `TENANT_ID_` varchar(255)  DEFAULT '',
  PRIMARY KEY (`ID_`) USING BTREE,
  KEY `ACT_FK_MODEL_SOURCE` (`EDITOR_SOURCE_VALUE_ID_`) USING BTREE,
  KEY `ACT_FK_MODEL_SOURCE_EXTRA` (`EDITOR_SOURCE_EXTRA_VALUE_ID_`) USING BTREE,
  KEY `ACT_FK_MODEL_DEPLOYMENT` (`DEPLOYMENT_ID_`) USING BTREE,
  CONSTRAINT `ACT_FK_MODEL_DEPLOYMENT` FOREIGN KEY (`DEPLOYMENT_ID_`) REFERENCES `act_re_deployment` (`ID_`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `ACT_FK_MODEL_SOURCE` FOREIGN KEY (`EDITOR_SOURCE_VALUE_ID_`) REFERENCES `act_ge_bytearray` (`ID_`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `ACT_FK_MODEL_SOURCE_EXTRA` FOREIGN KEY (`EDITOR_SOURCE_EXTRA_VALUE_ID_`) REFERENCES `act_ge_bytearray` (`ID_`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE=InnoDB  ;

-- ----------------------------
-- Records of act_re_model
-- ----------------------------
BEGIN;
COMMIT;

-- ----------------------------
-- Table structure for act_re_procdef
-- ----------------------------
DROP TABLE IF EXISTS `act_re_procdef`;
CREATE TABLE `act_re_procdef` (
  `ID_` varchar(64)  NOT NULL,
  `REV_` int DEFAULT NULL,
  `CATEGORY_` varchar(255)  DEFAULT NULL,
  `NAME_` varchar(255)  DEFAULT NULL,
  `KEY_` varchar(255)  NOT NULL,
  `VERSION_` int NOT NULL,
  `DEPLOYMENT_ID_` varchar(64)  DEFAULT NULL,
  `RESOURCE_NAME_` varchar(4000)  DEFAULT NULL,
  `DGRM_RESOURCE_NAME_` varchar(4000)  DEFAULT NULL,
  `DESCRIPTION_` varchar(4000)  DEFAULT NULL,
  `HAS_START_FORM_KEY_` tinyint DEFAULT NULL,
  `HAS_GRAPHICAL_NOTATION_` tinyint DEFAULT NULL,
  `SUSPENSION_STATE_` int DEFAULT NULL,
  `TENANT_ID_` varchar(255)  DEFAULT '',
  `ENGINE_VERSION_` varchar(255)  DEFAULT NULL,
  `DERIVED_FROM_` varchar(64)  DEFAULT NULL,
  `DERIVED_FROM_ROOT_` varchar(64)  DEFAULT NULL,
  `DERIVED_VERSION_` int NOT NULL DEFAULT '0',
  PRIMARY KEY (`ID_`) USING BTREE,
  UNIQUE KEY `ACT_UNIQ_PROCDEF` (`KEY_`,`VERSION_`,`DERIVED_VERSION_`,`TENANT_ID_`) USING BTREE
) ENGINE=InnoDB  ;

-- ----------------------------
-- Records of act_re_procdef
-- ----------------------------
BEGIN;
COMMIT;

-- ----------------------------
-- Table structure for act_ru_actinst
-- ----------------------------
DROP TABLE IF EXISTS `act_ru_actinst`;
CREATE TABLE `act_ru_actinst` (
  `ID_` varchar(64)  NOT NULL,
  `REV_` int DEFAULT '1',
  `PROC_DEF_ID_` varchar(64)  NOT NULL,
  `PROC_INST_ID_` varchar(64)  NOT NULL,
  `EXECUTION_ID_` varchar(64)  NOT NULL,
  `ACT_ID_` varchar(255)  NOT NULL,
  `TASK_ID_` varchar(64)  DEFAULT NULL,
  `CALL_PROC_INST_ID_` varchar(64)  DEFAULT NULL,
  `ACT_NAME_` varchar(255)  DEFAULT NULL,
  `ACT_TYPE_` varchar(255)  NOT NULL,
  `ASSIGNEE_` varchar(255)  DEFAULT NULL,
  `START_TIME_` datetime(3) NOT NULL,
  `END_TIME_` datetime(3) DEFAULT NULL,
  `DURATION_` bigint DEFAULT NULL,
  `TRANSACTION_ORDER_` int DEFAULT NULL,
  `DELETE_REASON_` varchar(4000)  DEFAULT NULL,
  `TENANT_ID_` varchar(255)  DEFAULT '',
  PRIMARY KEY (`ID_`) USING BTREE,
  KEY `ACT_IDX_RU_ACTI_START` (`START_TIME_`) USING BTREE,
  KEY `ACT_IDX_RU_ACTI_END` (`END_TIME_`) USING BTREE,
  KEY `ACT_IDX_RU_ACTI_PROC` (`PROC_INST_ID_`) USING BTREE,
  KEY `ACT_IDX_RU_ACTI_PROC_ACT` (`PROC_INST_ID_`,`ACT_ID_`) USING BTREE,
  KEY `ACT_IDX_RU_ACTI_EXEC` (`EXECUTION_ID_`) USING BTREE,
  KEY `ACT_IDX_RU_ACTI_EXEC_ACT` (`EXECUTION_ID_`,`ACT_ID_`) USING BTREE,
  KEY `ACT_IDX_RU_ACTI_TASK` (`TASK_ID_`) USING BTREE
) ENGINE=InnoDB  ;

-- ----------------------------
-- Records of act_ru_actinst
-- ----------------------------
BEGIN;
COMMIT;

-- ----------------------------
-- Table structure for act_ru_deadletter_job
-- ----------------------------
DROP TABLE IF EXISTS `act_ru_deadletter_job`;
CREATE TABLE `act_ru_deadletter_job` (
  `ID_` varchar(64)  NOT NULL,
  `REV_` int DEFAULT NULL,
  `CATEGORY_` varchar(255)  DEFAULT NULL,
  `TYPE_` varchar(255)  NOT NULL,
  `EXCLUSIVE_` tinyint(1) DEFAULT NULL,
  `EXECUTION_ID_` varchar(64)  DEFAULT NULL,
  `PROCESS_INSTANCE_ID_` varchar(64)  DEFAULT NULL,
  `PROC_DEF_ID_` varchar(64)  DEFAULT NULL,
  `ELEMENT_ID_` varchar(255)  DEFAULT NULL,
  `ELEMENT_NAME_` varchar(255)  DEFAULT NULL,
  `SCOPE_ID_` varchar(255)  DEFAULT NULL,
  `SUB_SCOPE_ID_` varchar(255)  DEFAULT NULL,
  `SCOPE_TYPE_` varchar(255)  DEFAULT NULL,
  `SCOPE_DEFINITION_ID_` varchar(255)  DEFAULT NULL,
  `CORRELATION_ID_` varchar(255)  DEFAULT NULL,
  `EXCEPTION_STACK_ID_` varchar(64)  DEFAULT NULL,
  `EXCEPTION_MSG_` varchar(4000)  DEFAULT NULL,
  `DUEDATE_` timestamp(3) NULL DEFAULT NULL,
  `REPEAT_` varchar(255)  DEFAULT NULL,
  `HANDLER_TYPE_` varchar(255)  DEFAULT NULL,
  `HANDLER_CFG_` varchar(4000)  DEFAULT NULL,
  `CUSTOM_VALUES_ID_` varchar(64)  DEFAULT NULL,
  `CREATE_TIME_` timestamp(3) NULL DEFAULT NULL,
  `TENANT_ID_` varchar(255)  DEFAULT '',
  PRIMARY KEY (`ID_`) USING BTREE,
  KEY `ACT_IDX_DEADLETTER_JOB_EXCEPTION_STACK_ID` (`EXCEPTION_STACK_ID_`) USING BTREE,
  KEY `ACT_IDX_DEADLETTER_JOB_CUSTOM_VALUES_ID` (`CUSTOM_VALUES_ID_`) USING BTREE,
  KEY `ACT_IDX_DEADLETTER_JOB_CORRELATION_ID` (`CORRELATION_ID_`) USING BTREE,
  KEY `ACT_IDX_DJOB_SCOPE` (`SCOPE_ID_`,`SCOPE_TYPE_`) USING BTREE,
  KEY `ACT_IDX_DJOB_SUB_SCOPE` (`SUB_SCOPE_ID_`,`SCOPE_TYPE_`) USING BTREE,
  KEY `ACT_IDX_DJOB_SCOPE_DEF` (`SCOPE_DEFINITION_ID_`,`SCOPE_TYPE_`) USING BTREE,
  KEY `ACT_FK_DEADLETTER_JOB_EXECUTION` (`EXECUTION_ID_`) USING BTREE,
  KEY `ACT_FK_DEADLETTER_JOB_PROCESS_INSTANCE` (`PROCESS_INSTANCE_ID_`) USING BTREE,
  KEY `ACT_FK_DEADLETTER_JOB_PROC_DEF` (`PROC_DEF_ID_`) USING BTREE,
  CONSTRAINT `ACT_FK_DEADLETTER_JOB_CUSTOM_VALUES` FOREIGN KEY (`CUSTOM_VALUES_ID_`) REFERENCES `act_ge_bytearray` (`ID_`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `ACT_FK_DEADLETTER_JOB_EXCEPTION` FOREIGN KEY (`EXCEPTION_STACK_ID_`) REFERENCES `act_ge_bytearray` (`ID_`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `ACT_FK_DEADLETTER_JOB_EXECUTION` FOREIGN KEY (`EXECUTION_ID_`) REFERENCES `act_ru_execution` (`ID_`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `ACT_FK_DEADLETTER_JOB_PROC_DEF` FOREIGN KEY (`PROC_DEF_ID_`) REFERENCES `act_re_procdef` (`ID_`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `ACT_FK_DEADLETTER_JOB_PROCESS_INSTANCE` FOREIGN KEY (`PROCESS_INSTANCE_ID_`) REFERENCES `act_ru_execution` (`ID_`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE=InnoDB  ;

-- ----------------------------
-- Records of act_ru_deadletter_job
-- ----------------------------
BEGIN;
COMMIT;

-- ----------------------------
-- Table structure for act_ru_entitylink
-- ----------------------------
DROP TABLE IF EXISTS `act_ru_entitylink`;
CREATE TABLE `act_ru_entitylink` (
  `ID_` varchar(64)  NOT NULL,
  `REV_` int DEFAULT NULL,
  `CREATE_TIME_` datetime(3) DEFAULT NULL,
  `LINK_TYPE_` varchar(255)  DEFAULT NULL,
  `SCOPE_ID_` varchar(255)  DEFAULT NULL,
  `SUB_SCOPE_ID_` varchar(255)  DEFAULT NULL,
  `SCOPE_TYPE_` varchar(255)  DEFAULT NULL,
  `SCOPE_DEFINITION_ID_` varchar(255)  DEFAULT NULL,
  `PARENT_ELEMENT_ID_` varchar(255)  DEFAULT NULL,
  `REF_SCOPE_ID_` varchar(255)  DEFAULT NULL,
  `REF_SCOPE_TYPE_` varchar(255)  DEFAULT NULL,
  `REF_SCOPE_DEFINITION_ID_` varchar(255)  DEFAULT NULL,
  `ROOT_SCOPE_ID_` varchar(255)  DEFAULT NULL,
  `ROOT_SCOPE_TYPE_` varchar(255)  DEFAULT NULL,
  `HIERARCHY_TYPE_` varchar(255)  DEFAULT NULL,
  PRIMARY KEY (`ID_`) USING BTREE,
  KEY `ACT_IDX_ENT_LNK_SCOPE` (`SCOPE_ID_`,`SCOPE_TYPE_`,`LINK_TYPE_`) USING BTREE,
  KEY `ACT_IDX_ENT_LNK_REF_SCOPE` (`REF_SCOPE_ID_`,`REF_SCOPE_TYPE_`,`LINK_TYPE_`) USING BTREE,
  KEY `ACT_IDX_ENT_LNK_ROOT_SCOPE` (`ROOT_SCOPE_ID_`,`ROOT_SCOPE_TYPE_`,`LINK_TYPE_`) USING BTREE,
  KEY `ACT_IDX_ENT_LNK_SCOPE_DEF` (`SCOPE_DEFINITION_ID_`,`SCOPE_TYPE_`,`LINK_TYPE_`) USING BTREE
) ENGINE=InnoDB  ;

-- ----------------------------
-- Records of act_ru_entitylink
-- ----------------------------
BEGIN;
COMMIT;

-- ----------------------------
-- Table structure for act_ru_event_subscr
-- ----------------------------
DROP TABLE IF EXISTS `act_ru_event_subscr`;
CREATE TABLE `act_ru_event_subscr` (
  `ID_` varchar(64)  NOT NULL,
  `REV_` int DEFAULT NULL,
  `EVENT_TYPE_` varchar(255)  NOT NULL,
  `EVENT_NAME_` varchar(255)  DEFAULT NULL,
  `EXECUTION_ID_` varchar(64)  DEFAULT NULL,
  `PROC_INST_ID_` varchar(64)  DEFAULT NULL,
  `ACTIVITY_ID_` varchar(64)  DEFAULT NULL,
  `CONFIGURATION_` varchar(255)  DEFAULT NULL,
  `CREATED_` timestamp(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3),
  `PROC_DEF_ID_` varchar(64)  DEFAULT NULL,
  `SUB_SCOPE_ID_` varchar(64)  DEFAULT NULL,
  `SCOPE_ID_` varchar(64)  DEFAULT NULL,
  `SCOPE_DEFINITION_ID_` varchar(64)  DEFAULT NULL,
  `SCOPE_TYPE_` varchar(64)  DEFAULT NULL,
  `TENANT_ID_` varchar(255)  DEFAULT '',
  PRIMARY KEY (`ID_`) USING BTREE,
  KEY `ACT_IDX_EVENT_SUBSCR_CONFIG_` (`CONFIGURATION_`) USING BTREE,
  KEY `ACT_FK_EVENT_EXEC` (`EXECUTION_ID_`) USING BTREE,
  CONSTRAINT `ACT_FK_EVENT_EXEC` FOREIGN KEY (`EXECUTION_ID_`) REFERENCES `act_ru_execution` (`ID_`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE=InnoDB  ;

-- ----------------------------
-- Records of act_ru_event_subscr
-- ----------------------------
BEGIN;
COMMIT;

-- ----------------------------
-- Table structure for act_ru_execution
-- ----------------------------
DROP TABLE IF EXISTS `act_ru_execution`;
CREATE TABLE `act_ru_execution` (
  `ID_` varchar(64)  NOT NULL,
  `REV_` int DEFAULT NULL,
  `PROC_INST_ID_` varchar(64)  DEFAULT NULL,
  `BUSINESS_KEY_` varchar(255)  DEFAULT NULL,
  `PARENT_ID_` varchar(64)  DEFAULT NULL,
  `PROC_DEF_ID_` varchar(64)  DEFAULT NULL,
  `SUPER_EXEC_` varchar(64)  DEFAULT NULL,
  `ROOT_PROC_INST_ID_` varchar(64)  DEFAULT NULL,
  `ACT_ID_` varchar(255)  DEFAULT NULL,
  `IS_ACTIVE_` tinyint DEFAULT NULL,
  `IS_CONCURRENT_` tinyint DEFAULT NULL,
  `IS_SCOPE_` tinyint DEFAULT NULL,
  `IS_EVENT_SCOPE_` tinyint DEFAULT NULL,
  `IS_MI_ROOT_` tinyint DEFAULT NULL,
  `SUSPENSION_STATE_` int DEFAULT NULL,
  `CACHED_ENT_STATE_` int DEFAULT NULL,
  `TENANT_ID_` varchar(255)  DEFAULT '',
  `NAME_` varchar(255)  DEFAULT NULL,
  `START_ACT_ID_` varchar(255)  DEFAULT NULL,
  `START_TIME_` datetime(3) DEFAULT NULL,
  `START_USER_ID_` varchar(255)  DEFAULT NULL,
  `LOCK_TIME_` timestamp(3) NULL DEFAULT NULL,
  `LOCK_OWNER_` varchar(255)  DEFAULT NULL,
  `IS_COUNT_ENABLED_` tinyint DEFAULT NULL,
  `EVT_SUBSCR_COUNT_` int DEFAULT NULL,
  `TASK_COUNT_` int DEFAULT NULL,
  `JOB_COUNT_` int DEFAULT NULL,
  `TIMER_JOB_COUNT_` int DEFAULT NULL,
  `SUSP_JOB_COUNT_` int DEFAULT NULL,
  `DEADLETTER_JOB_COUNT_` int DEFAULT NULL,
  `EXTERNAL_WORKER_JOB_COUNT_` int DEFAULT NULL,
  `VAR_COUNT_` int DEFAULT NULL,
  `ID_LINK_COUNT_` int DEFAULT NULL,
  `CALLBACK_ID_` varchar(255)  DEFAULT NULL,
  `CALLBACK_TYPE_` varchar(255)  DEFAULT NULL,
  `REFERENCE_ID_` varchar(255)  DEFAULT NULL,
  `REFERENCE_TYPE_` varchar(255)  DEFAULT NULL,
  `PROPAGATED_STAGE_INST_ID_` varchar(255)  DEFAULT NULL,
  `BUSINESS_STATUS_` varchar(255)  DEFAULT NULL,
  PRIMARY KEY (`ID_`) USING BTREE,
  KEY `ACT_IDX_EXEC_BUSKEY` (`BUSINESS_KEY_`) USING BTREE,
  KEY `ACT_IDC_EXEC_ROOT` (`ROOT_PROC_INST_ID_`) USING BTREE,
  KEY `ACT_IDX_EXEC_REF_ID_` (`REFERENCE_ID_`) USING BTREE,
  KEY `ACT_FK_EXE_PROCINST` (`PROC_INST_ID_`) USING BTREE,
  KEY `ACT_FK_EXE_PARENT` (`PARENT_ID_`) USING BTREE,
  KEY `ACT_FK_EXE_SUPER` (`SUPER_EXEC_`) USING BTREE,
  KEY `ACT_FK_EXE_PROCDEF` (`PROC_DEF_ID_`) USING BTREE,
  CONSTRAINT `ACT_FK_EXE_PARENT` FOREIGN KEY (`PARENT_ID_`) REFERENCES `act_ru_execution` (`ID_`) ON DELETE CASCADE ON UPDATE RESTRICT,
  CONSTRAINT `ACT_FK_EXE_PROCDEF` FOREIGN KEY (`PROC_DEF_ID_`) REFERENCES `act_re_procdef` (`ID_`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `ACT_FK_EXE_PROCINST` FOREIGN KEY (`PROC_INST_ID_`) REFERENCES `act_ru_execution` (`ID_`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `ACT_FK_EXE_SUPER` FOREIGN KEY (`SUPER_EXEC_`) REFERENCES `act_ru_execution` (`ID_`) ON DELETE CASCADE ON UPDATE RESTRICT
) ENGINE=InnoDB  ;

-- ----------------------------
-- Records of act_ru_execution
-- ----------------------------
BEGIN;
COMMIT;

-- ----------------------------
-- Table structure for act_ru_external_job
-- ----------------------------
DROP TABLE IF EXISTS `act_ru_external_job`;
CREATE TABLE `act_ru_external_job` (
  `ID_` varchar(64)  NOT NULL,
  `REV_` int DEFAULT NULL,
  `CATEGORY_` varchar(255)  DEFAULT NULL,
  `TYPE_` varchar(255)  NOT NULL,
  `LOCK_EXP_TIME_` timestamp(3) NULL DEFAULT NULL,
  `LOCK_OWNER_` varchar(255)  DEFAULT NULL,
  `EXCLUSIVE_` tinyint(1) DEFAULT NULL,
  `EXECUTION_ID_` varchar(64)  DEFAULT NULL,
  `PROCESS_INSTANCE_ID_` varchar(64)  DEFAULT NULL,
  `PROC_DEF_ID_` varchar(64)  DEFAULT NULL,
  `ELEMENT_ID_` varchar(255)  DEFAULT NULL,
  `ELEMENT_NAME_` varchar(255)  DEFAULT NULL,
  `SCOPE_ID_` varchar(255)  DEFAULT NULL,
  `SUB_SCOPE_ID_` varchar(255)  DEFAULT NULL,
  `SCOPE_TYPE_` varchar(255)  DEFAULT NULL,
  `SCOPE_DEFINITION_ID_` varchar(255)  DEFAULT NULL,
  `CORRELATION_ID_` varchar(255)  DEFAULT NULL,
  `RETRIES_` int DEFAULT NULL,
  `EXCEPTION_STACK_ID_` varchar(64)  DEFAULT NULL,
  `EXCEPTION_MSG_` varchar(4000)  DEFAULT NULL,
  `DUEDATE_` timestamp(3) NULL DEFAULT NULL,
  `REPEAT_` varchar(255)  DEFAULT NULL,
  `HANDLER_TYPE_` varchar(255)  DEFAULT NULL,
  `HANDLER_CFG_` varchar(4000)  DEFAULT NULL,
  `CUSTOM_VALUES_ID_` varchar(64)  DEFAULT NULL,
  `CREATE_TIME_` timestamp(3) NULL DEFAULT NULL,
  `TENANT_ID_` varchar(255)  DEFAULT '',
  PRIMARY KEY (`ID_`) USING BTREE,
  KEY `ACT_IDX_EXTERNAL_JOB_EXCEPTION_STACK_ID` (`EXCEPTION_STACK_ID_`) USING BTREE,
  KEY `ACT_IDX_EXTERNAL_JOB_CUSTOM_VALUES_ID` (`CUSTOM_VALUES_ID_`) USING BTREE,
  KEY `ACT_IDX_EXTERNAL_JOB_CORRELATION_ID` (`CORRELATION_ID_`) USING BTREE,
  KEY `ACT_IDX_EJOB_SCOPE` (`SCOPE_ID_`,`SCOPE_TYPE_`) USING BTREE,
  KEY `ACT_IDX_EJOB_SUB_SCOPE` (`SUB_SCOPE_ID_`,`SCOPE_TYPE_`) USING BTREE,
  KEY `ACT_IDX_EJOB_SCOPE_DEF` (`SCOPE_DEFINITION_ID_`,`SCOPE_TYPE_`) USING BTREE,
  CONSTRAINT `ACT_FK_EXTERNAL_JOB_CUSTOM_VALUES` FOREIGN KEY (`CUSTOM_VALUES_ID_`) REFERENCES `act_ge_bytearray` (`ID_`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `ACT_FK_EXTERNAL_JOB_EXCEPTION` FOREIGN KEY (`EXCEPTION_STACK_ID_`) REFERENCES `act_ge_bytearray` (`ID_`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE=InnoDB  ;

-- ----------------------------
-- Records of act_ru_external_job
-- ----------------------------
BEGIN;
COMMIT;

-- ----------------------------
-- Table structure for act_ru_history_job
-- ----------------------------
DROP TABLE IF EXISTS `act_ru_history_job`;
CREATE TABLE `act_ru_history_job` (
  `ID_` varchar(64)  NOT NULL,
  `REV_` int DEFAULT NULL,
  `LOCK_EXP_TIME_` timestamp(3) NULL DEFAULT NULL,
  `LOCK_OWNER_` varchar(255)  DEFAULT NULL,
  `RETRIES_` int DEFAULT NULL,
  `EXCEPTION_STACK_ID_` varchar(64)  DEFAULT NULL,
  `EXCEPTION_MSG_` varchar(4000)  DEFAULT NULL,
  `HANDLER_TYPE_` varchar(255)  DEFAULT NULL,
  `HANDLER_CFG_` varchar(4000)  DEFAULT NULL,
  `CUSTOM_VALUES_ID_` varchar(64)  DEFAULT NULL,
  `ADV_HANDLER_CFG_ID_` varchar(64)  DEFAULT NULL,
  `CREATE_TIME_` timestamp(3) NULL DEFAULT NULL,
  `SCOPE_TYPE_` varchar(255)  DEFAULT NULL,
  `TENANT_ID_` varchar(255)  DEFAULT '',
  PRIMARY KEY (`ID_`) USING BTREE
) ENGINE=InnoDB  ;

-- ----------------------------
-- Records of act_ru_history_job
-- ----------------------------
BEGIN;
COMMIT;

-- ----------------------------
-- Table structure for act_ru_identitylink
-- ----------------------------
DROP TABLE IF EXISTS `act_ru_identitylink`;
CREATE TABLE `act_ru_identitylink` (
  `ID_` varchar(64)  NOT NULL,
  `REV_` int DEFAULT NULL,
  `GROUP_ID_` varchar(255)  DEFAULT NULL,
  `TYPE_` varchar(255)  DEFAULT NULL,
  `USER_ID_` varchar(255)  DEFAULT NULL,
  `TASK_ID_` varchar(64)  DEFAULT NULL,
  `PROC_INST_ID_` varchar(64)  DEFAULT NULL,
  `PROC_DEF_ID_` varchar(64)  DEFAULT NULL,
  `SCOPE_ID_` varchar(255)  DEFAULT NULL,
  `SUB_SCOPE_ID_` varchar(255)  DEFAULT NULL,
  `SCOPE_TYPE_` varchar(255)  DEFAULT NULL,
  `SCOPE_DEFINITION_ID_` varchar(255)  DEFAULT NULL,
  PRIMARY KEY (`ID_`) USING BTREE,
  KEY `ACT_IDX_IDENT_LNK_USER` (`USER_ID_`) USING BTREE,
  KEY `ACT_IDX_IDENT_LNK_GROUP` (`GROUP_ID_`) USING BTREE,
  KEY `ACT_IDX_IDENT_LNK_SCOPE` (`SCOPE_ID_`,`SCOPE_TYPE_`) USING BTREE,
  KEY `ACT_IDX_IDENT_LNK_SUB_SCOPE` (`SUB_SCOPE_ID_`,`SCOPE_TYPE_`) USING BTREE,
  KEY `ACT_IDX_IDENT_LNK_SCOPE_DEF` (`SCOPE_DEFINITION_ID_`,`SCOPE_TYPE_`) USING BTREE,
  KEY `ACT_IDX_ATHRZ_PROCEDEF` (`PROC_DEF_ID_`) USING BTREE,
  KEY `ACT_FK_TSKASS_TASK` (`TASK_ID_`) USING BTREE,
  KEY `ACT_FK_IDL_PROCINST` (`PROC_INST_ID_`) USING BTREE,
  CONSTRAINT `ACT_FK_ATHRZ_PROCEDEF` FOREIGN KEY (`PROC_DEF_ID_`) REFERENCES `act_re_procdef` (`ID_`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `ACT_FK_IDL_PROCINST` FOREIGN KEY (`PROC_INST_ID_`) REFERENCES `act_ru_execution` (`ID_`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `ACT_FK_TSKASS_TASK` FOREIGN KEY (`TASK_ID_`) REFERENCES `act_ru_task` (`ID_`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE=InnoDB  ;

-- ----------------------------
-- Records of act_ru_identitylink
-- ----------------------------
BEGIN;
COMMIT;

-- ----------------------------
-- Table structure for act_ru_job
-- ----------------------------
DROP TABLE IF EXISTS `act_ru_job`;
CREATE TABLE `act_ru_job` (
  `ID_` varchar(64)  NOT NULL,
  `REV_` int DEFAULT NULL,
  `CATEGORY_` varchar(255)  DEFAULT NULL,
  `TYPE_` varchar(255)  NOT NULL,
  `LOCK_EXP_TIME_` timestamp(3) NULL DEFAULT NULL,
  `LOCK_OWNER_` varchar(255)  DEFAULT NULL,
  `EXCLUSIVE_` tinyint(1) DEFAULT NULL,
  `EXECUTION_ID_` varchar(64)  DEFAULT NULL,
  `PROCESS_INSTANCE_ID_` varchar(64)  DEFAULT NULL,
  `PROC_DEF_ID_` varchar(64)  DEFAULT NULL,
  `ELEMENT_ID_` varchar(255)  DEFAULT NULL,
  `ELEMENT_NAME_` varchar(255)  DEFAULT NULL,
  `SCOPE_ID_` varchar(255)  DEFAULT NULL,
  `SUB_SCOPE_ID_` varchar(255)  DEFAULT NULL,
  `SCOPE_TYPE_` varchar(255)  DEFAULT NULL,
  `SCOPE_DEFINITION_ID_` varchar(255)  DEFAULT NULL,
  `CORRELATION_ID_` varchar(255)  DEFAULT NULL,
  `RETRIES_` int DEFAULT NULL,
  `EXCEPTION_STACK_ID_` varchar(64)  DEFAULT NULL,
  `EXCEPTION_MSG_` varchar(4000)  DEFAULT NULL,
  `DUEDATE_` timestamp(3) NULL DEFAULT NULL,
  `REPEAT_` varchar(255)  DEFAULT NULL,
  `HANDLER_TYPE_` varchar(255)  DEFAULT NULL,
  `HANDLER_CFG_` varchar(4000)  DEFAULT NULL,
  `CUSTOM_VALUES_ID_` varchar(64)  DEFAULT NULL,
  `CREATE_TIME_` timestamp(3) NULL DEFAULT NULL,
  `TENANT_ID_` varchar(255)  DEFAULT '',
  PRIMARY KEY (`ID_`) USING BTREE,
  KEY `ACT_IDX_JOB_EXCEPTION_STACK_ID` (`EXCEPTION_STACK_ID_`) USING BTREE,
  KEY `ACT_IDX_JOB_CUSTOM_VALUES_ID` (`CUSTOM_VALUES_ID_`) USING BTREE,
  KEY `ACT_IDX_JOB_CORRELATION_ID` (`CORRELATION_ID_`) USING BTREE,
  KEY `ACT_IDX_JOB_SCOPE` (`SCOPE_ID_`,`SCOPE_TYPE_`) USING BTREE,
  KEY `ACT_IDX_JOB_SUB_SCOPE` (`SUB_SCOPE_ID_`,`SCOPE_TYPE_`) USING BTREE,
  KEY `ACT_IDX_JOB_SCOPE_DEF` (`SCOPE_DEFINITION_ID_`,`SCOPE_TYPE_`) USING BTREE,
  KEY `ACT_FK_JOB_EXECUTION` (`EXECUTION_ID_`) USING BTREE,
  KEY `ACT_FK_JOB_PROCESS_INSTANCE` (`PROCESS_INSTANCE_ID_`) USING BTREE,
  KEY `ACT_FK_JOB_PROC_DEF` (`PROC_DEF_ID_`) USING BTREE,
  CONSTRAINT `ACT_FK_JOB_CUSTOM_VALUES` FOREIGN KEY (`CUSTOM_VALUES_ID_`) REFERENCES `act_ge_bytearray` (`ID_`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `ACT_FK_JOB_EXCEPTION` FOREIGN KEY (`EXCEPTION_STACK_ID_`) REFERENCES `act_ge_bytearray` (`ID_`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `ACT_FK_JOB_EXECUTION` FOREIGN KEY (`EXECUTION_ID_`) REFERENCES `act_ru_execution` (`ID_`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `ACT_FK_JOB_PROC_DEF` FOREIGN KEY (`PROC_DEF_ID_`) REFERENCES `act_re_procdef` (`ID_`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `ACT_FK_JOB_PROCESS_INSTANCE` FOREIGN KEY (`PROCESS_INSTANCE_ID_`) REFERENCES `act_ru_execution` (`ID_`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE=InnoDB  ;

-- ----------------------------
-- Records of act_ru_job
-- ----------------------------
BEGIN;
COMMIT;

-- ----------------------------
-- Table structure for act_ru_suspended_job
-- ----------------------------
DROP TABLE IF EXISTS `act_ru_suspended_job`;
CREATE TABLE `act_ru_suspended_job` (
  `ID_` varchar(64)  NOT NULL,
  `REV_` int DEFAULT NULL,
  `CATEGORY_` varchar(255)  DEFAULT NULL,
  `TYPE_` varchar(255)  NOT NULL,
  `EXCLUSIVE_` tinyint(1) DEFAULT NULL,
  `EXECUTION_ID_` varchar(64)  DEFAULT NULL,
  `PROCESS_INSTANCE_ID_` varchar(64)  DEFAULT NULL,
  `PROC_DEF_ID_` varchar(64)  DEFAULT NULL,
  `ELEMENT_ID_` varchar(255)  DEFAULT NULL,
  `ELEMENT_NAME_` varchar(255)  DEFAULT NULL,
  `SCOPE_ID_` varchar(255)  DEFAULT NULL,
  `SUB_SCOPE_ID_` varchar(255)  DEFAULT NULL,
  `SCOPE_TYPE_` varchar(255)  DEFAULT NULL,
  `SCOPE_DEFINITION_ID_` varchar(255)  DEFAULT NULL,
  `CORRELATION_ID_` varchar(255)  DEFAULT NULL,
  `RETRIES_` int DEFAULT NULL,
  `EXCEPTION_STACK_ID_` varchar(64)  DEFAULT NULL,
  `EXCEPTION_MSG_` varchar(4000)  DEFAULT NULL,
  `DUEDATE_` timestamp(3) NULL DEFAULT NULL,
  `REPEAT_` varchar(255)  DEFAULT NULL,
  `HANDLER_TYPE_` varchar(255)  DEFAULT NULL,
  `HANDLER_CFG_` varchar(4000)  DEFAULT NULL,
  `CUSTOM_VALUES_ID_` varchar(64)  DEFAULT NULL,
  `CREATE_TIME_` timestamp(3) NULL DEFAULT NULL,
  `TENANT_ID_` varchar(255)  DEFAULT '',
  PRIMARY KEY (`ID_`) USING BTREE,
  KEY `ACT_IDX_SUSPENDED_JOB_EXCEPTION_STACK_ID` (`EXCEPTION_STACK_ID_`) USING BTREE,
  KEY `ACT_IDX_SUSPENDED_JOB_CUSTOM_VALUES_ID` (`CUSTOM_VALUES_ID_`) USING BTREE,
  KEY `ACT_IDX_SUSPENDED_JOB_CORRELATION_ID` (`CORRELATION_ID_`) USING BTREE,
  KEY `ACT_IDX_SJOB_SCOPE` (`SCOPE_ID_`,`SCOPE_TYPE_`) USING BTREE,
  KEY `ACT_IDX_SJOB_SUB_SCOPE` (`SUB_SCOPE_ID_`,`SCOPE_TYPE_`) USING BTREE,
  KEY `ACT_IDX_SJOB_SCOPE_DEF` (`SCOPE_DEFINITION_ID_`,`SCOPE_TYPE_`) USING BTREE,
  KEY `ACT_FK_SUSPENDED_JOB_EXECUTION` (`EXECUTION_ID_`) USING BTREE,
  KEY `ACT_FK_SUSPENDED_JOB_PROCESS_INSTANCE` (`PROCESS_INSTANCE_ID_`) USING BTREE,
  KEY `ACT_FK_SUSPENDED_JOB_PROC_DEF` (`PROC_DEF_ID_`) USING BTREE,
  CONSTRAINT `ACT_FK_SUSPENDED_JOB_CUSTOM_VALUES` FOREIGN KEY (`CUSTOM_VALUES_ID_`) REFERENCES `act_ge_bytearray` (`ID_`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `ACT_FK_SUSPENDED_JOB_EXCEPTION` FOREIGN KEY (`EXCEPTION_STACK_ID_`) REFERENCES `act_ge_bytearray` (`ID_`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `ACT_FK_SUSPENDED_JOB_EXECUTION` FOREIGN KEY (`EXECUTION_ID_`) REFERENCES `act_ru_execution` (`ID_`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `ACT_FK_SUSPENDED_JOB_PROC_DEF` FOREIGN KEY (`PROC_DEF_ID_`) REFERENCES `act_re_procdef` (`ID_`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `ACT_FK_SUSPENDED_JOB_PROCESS_INSTANCE` FOREIGN KEY (`PROCESS_INSTANCE_ID_`) REFERENCES `act_ru_execution` (`ID_`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE=InnoDB  ;

-- ----------------------------
-- Records of act_ru_suspended_job
-- ----------------------------
BEGIN;
COMMIT;

-- ----------------------------
-- Table structure for act_ru_task
-- ----------------------------
DROP TABLE IF EXISTS `act_ru_task`;
CREATE TABLE `act_ru_task` (
  `ID_` varchar(64)  NOT NULL,
  `REV_` int DEFAULT NULL,
  `EXECUTION_ID_` varchar(64)  DEFAULT NULL,
  `PROC_INST_ID_` varchar(64)  DEFAULT NULL,
  `PROC_DEF_ID_` varchar(64)  DEFAULT NULL,
  `TASK_DEF_ID_` varchar(64)  DEFAULT NULL,
  `SCOPE_ID_` varchar(255)  DEFAULT NULL,
  `SUB_SCOPE_ID_` varchar(255)  DEFAULT NULL,
  `SCOPE_TYPE_` varchar(255)  DEFAULT NULL,
  `SCOPE_DEFINITION_ID_` varchar(255)  DEFAULT NULL,
  `PROPAGATED_STAGE_INST_ID_` varchar(255)  DEFAULT NULL,
  `NAME_` varchar(255)  DEFAULT NULL,
  `PARENT_TASK_ID_` varchar(64)  DEFAULT NULL,
  `DESCRIPTION_` varchar(4000)  DEFAULT NULL,
  `TASK_DEF_KEY_` varchar(255)  DEFAULT NULL,
  `OWNER_` varchar(255)  DEFAULT NULL,
  `ASSIGNEE_` varchar(255)  DEFAULT NULL,
  `DELEGATION_` varchar(64)  DEFAULT NULL,
  `PRIORITY_` int DEFAULT NULL,
  `CREATE_TIME_` timestamp(3) NULL DEFAULT NULL,
  `DUE_DATE_` datetime(3) DEFAULT NULL,
  `CATEGORY_` varchar(255)  DEFAULT NULL,
  `SUSPENSION_STATE_` int DEFAULT NULL,
  `TENANT_ID_` varchar(255)  DEFAULT '',
  `FORM_KEY_` varchar(255)  DEFAULT NULL,
  `CLAIM_TIME_` datetime(3) DEFAULT NULL,
  `IS_COUNT_ENABLED_` tinyint DEFAULT NULL,
  `VAR_COUNT_` int DEFAULT NULL,
  `ID_LINK_COUNT_` int DEFAULT NULL,
  `SUB_TASK_COUNT_` int DEFAULT NULL,
  PRIMARY KEY (`ID_`) USING BTREE,
  KEY `ACT_IDX_TASK_CREATE` (`CREATE_TIME_`) USING BTREE,
  KEY `ACT_IDX_TASK_SCOPE` (`SCOPE_ID_`,`SCOPE_TYPE_`) USING BTREE,
  KEY `ACT_IDX_TASK_SUB_SCOPE` (`SUB_SCOPE_ID_`,`SCOPE_TYPE_`) USING BTREE,
  KEY `ACT_IDX_TASK_SCOPE_DEF` (`SCOPE_DEFINITION_ID_`,`SCOPE_TYPE_`) USING BTREE,
  KEY `ACT_FK_TASK_EXE` (`EXECUTION_ID_`) USING BTREE,
  KEY `ACT_FK_TASK_PROCINST` (`PROC_INST_ID_`) USING BTREE,
  KEY `ACT_FK_TASK_PROCDEF` (`PROC_DEF_ID_`) USING BTREE,
  CONSTRAINT `ACT_FK_TASK_EXE` FOREIGN KEY (`EXECUTION_ID_`) REFERENCES `act_ru_execution` (`ID_`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `ACT_FK_TASK_PROCDEF` FOREIGN KEY (`PROC_DEF_ID_`) REFERENCES `act_re_procdef` (`ID_`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `ACT_FK_TASK_PROCINST` FOREIGN KEY (`PROC_INST_ID_`) REFERENCES `act_ru_execution` (`ID_`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE=InnoDB  ;

-- ----------------------------
-- Records of act_ru_task
-- ----------------------------
BEGIN;
COMMIT;

-- ----------------------------
-- Table structure for act_ru_timer_job
-- ----------------------------
DROP TABLE IF EXISTS `act_ru_timer_job`;
CREATE TABLE `act_ru_timer_job` (
  `ID_` varchar(64)  NOT NULL,
  `REV_` int DEFAULT NULL,
  `CATEGORY_` varchar(255)  DEFAULT NULL,
  `TYPE_` varchar(255)  NOT NULL,
  `LOCK_EXP_TIME_` timestamp(3) NULL DEFAULT NULL,
  `LOCK_OWNER_` varchar(255)  DEFAULT NULL,
  `EXCLUSIVE_` tinyint(1) DEFAULT NULL,
  `EXECUTION_ID_` varchar(64)  DEFAULT NULL,
  `PROCESS_INSTANCE_ID_` varchar(64)  DEFAULT NULL,
  `PROC_DEF_ID_` varchar(64)  DEFAULT NULL,
  `ELEMENT_ID_` varchar(255)  DEFAULT NULL,
  `ELEMENT_NAME_` varchar(255)  DEFAULT NULL,
  `SCOPE_ID_` varchar(255)  DEFAULT NULL,
  `SUB_SCOPE_ID_` varchar(255)  DEFAULT NULL,
  `SCOPE_TYPE_` varchar(255)  DEFAULT NULL,
  `SCOPE_DEFINITION_ID_` varchar(255)  DEFAULT NULL,
  `CORRELATION_ID_` varchar(255)  DEFAULT NULL,
  `RETRIES_` int DEFAULT NULL,
  `EXCEPTION_STACK_ID_` varchar(64)  DEFAULT NULL,
  `EXCEPTION_MSG_` varchar(4000)  DEFAULT NULL,
  `DUEDATE_` timestamp(3) NULL DEFAULT NULL,
  `REPEAT_` varchar(255)  DEFAULT NULL,
  `HANDLER_TYPE_` varchar(255)  DEFAULT NULL,
  `HANDLER_CFG_` varchar(4000)  DEFAULT NULL,
  `CUSTOM_VALUES_ID_` varchar(64)  DEFAULT NULL,
  `CREATE_TIME_` timestamp(3) NULL DEFAULT NULL,
  `TENANT_ID_` varchar(255)  DEFAULT '',
  PRIMARY KEY (`ID_`) USING BTREE,
  KEY `ACT_IDX_TIMER_JOB_EXCEPTION_STACK_ID` (`EXCEPTION_STACK_ID_`) USING BTREE,
  KEY `ACT_IDX_TIMER_JOB_CUSTOM_VALUES_ID` (`CUSTOM_VALUES_ID_`) USING BTREE,
  KEY `ACT_IDX_TIMER_JOB_CORRELATION_ID` (`CORRELATION_ID_`) USING BTREE,
  KEY `ACT_IDX_TIMER_JOB_DUEDATE` (`DUEDATE_`) USING BTREE,
  KEY `ACT_IDX_TJOB_SCOPE` (`SCOPE_ID_`,`SCOPE_TYPE_`) USING BTREE,
  KEY `ACT_IDX_TJOB_SUB_SCOPE` (`SUB_SCOPE_ID_`,`SCOPE_TYPE_`) USING BTREE,
  KEY `ACT_IDX_TJOB_SCOPE_DEF` (`SCOPE_DEFINITION_ID_`,`SCOPE_TYPE_`) USING BTREE,
  KEY `ACT_FK_TIMER_JOB_EXECUTION` (`EXECUTION_ID_`) USING BTREE,
  KEY `ACT_FK_TIMER_JOB_PROCESS_INSTANCE` (`PROCESS_INSTANCE_ID_`) USING BTREE,
  KEY `ACT_FK_TIMER_JOB_PROC_DEF` (`PROC_DEF_ID_`) USING BTREE,
  CONSTRAINT `ACT_FK_TIMER_JOB_CUSTOM_VALUES` FOREIGN KEY (`CUSTOM_VALUES_ID_`) REFERENCES `act_ge_bytearray` (`ID_`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `ACT_FK_TIMER_JOB_EXCEPTION` FOREIGN KEY (`EXCEPTION_STACK_ID_`) REFERENCES `act_ge_bytearray` (`ID_`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `ACT_FK_TIMER_JOB_EXECUTION` FOREIGN KEY (`EXECUTION_ID_`) REFERENCES `act_ru_execution` (`ID_`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `ACT_FK_TIMER_JOB_PROC_DEF` FOREIGN KEY (`PROC_DEF_ID_`) REFERENCES `act_re_procdef` (`ID_`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `ACT_FK_TIMER_JOB_PROCESS_INSTANCE` FOREIGN KEY (`PROCESS_INSTANCE_ID_`) REFERENCES `act_ru_execution` (`ID_`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE=InnoDB  ;

-- ----------------------------
-- Records of act_ru_timer_job
-- ----------------------------
BEGIN;
COMMIT;

-- ----------------------------
-- Table structure for act_ru_variable
-- ----------------------------
DROP TABLE IF EXISTS `act_ru_variable`;
CREATE TABLE `act_ru_variable` (
  `ID_` varchar(64)  NOT NULL,
  `REV_` int DEFAULT NULL,
  `TYPE_` varchar(255)  NOT NULL,
  `NAME_` varchar(255)  NOT NULL,
  `EXECUTION_ID_` varchar(64)  DEFAULT NULL,
  `PROC_INST_ID_` varchar(64)  DEFAULT NULL,
  `TASK_ID_` varchar(64)  DEFAULT NULL,
  `SCOPE_ID_` varchar(255)  DEFAULT NULL,
  `SUB_SCOPE_ID_` varchar(255)  DEFAULT NULL,
  `SCOPE_TYPE_` varchar(255)  DEFAULT NULL,
  `BYTEARRAY_ID_` varchar(64)  DEFAULT NULL,
  `DOUBLE_` double DEFAULT NULL,
  `LONG_` bigint DEFAULT NULL,
  `TEXT_` varchar(4000)  DEFAULT NULL,
  `TEXT2_` varchar(4000)  DEFAULT NULL,
  PRIMARY KEY (`ID_`) USING BTREE,
  KEY `ACT_IDX_RU_VAR_SCOPE_ID_TYPE` (`SCOPE_ID_`,`SCOPE_TYPE_`) USING BTREE,
  KEY `ACT_IDX_RU_VAR_SUB_ID_TYPE` (`SUB_SCOPE_ID_`,`SCOPE_TYPE_`) USING BTREE,
  KEY `ACT_FK_VAR_BYTEARRAY` (`BYTEARRAY_ID_`) USING BTREE,
  KEY `ACT_IDX_VARIABLE_TASK_ID` (`TASK_ID_`) USING BTREE,
  KEY `ACT_FK_VAR_EXE` (`EXECUTION_ID_`) USING BTREE,
  KEY `ACT_FK_VAR_PROCINST` (`PROC_INST_ID_`) USING BTREE,
  CONSTRAINT `ACT_FK_VAR_BYTEARRAY` FOREIGN KEY (`BYTEARRAY_ID_`) REFERENCES `act_ge_bytearray` (`ID_`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `ACT_FK_VAR_EXE` FOREIGN KEY (`EXECUTION_ID_`) REFERENCES `act_ru_execution` (`ID_`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `ACT_FK_VAR_PROCINST` FOREIGN KEY (`PROC_INST_ID_`) REFERENCES `act_ru_execution` (`ID_`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE=InnoDB  ;

-- ----------------------------
-- Records of act_ru_variable
-- ----------------------------
BEGIN;
COMMIT;

-- ----------------------------
-- Table structure for DATABASECHANGELOG
-- ----------------------------
DROP TABLE IF EXISTS `DATABASECHANGELOG`;
CREATE TABLE `DATABASECHANGELOG` (
  `ID` varchar(255)  NOT NULL,
  `AUTHOR` varchar(255)  NOT NULL,
  `FILENAME` varchar(255)  NOT NULL,
  `DATEEXECUTED` datetime NOT NULL,
  `ORDEREXECUTED` int NOT NULL,
  `EXECTYPE` varchar(10)  NOT NULL,
  `MD5SUM` varchar(35)  DEFAULT NULL,
  `DESCRIPTION` varchar(255)  DEFAULT NULL,
  `COMMENTS` varchar(255)  DEFAULT NULL,
  `TAG` varchar(255)  DEFAULT NULL,
  `LIQUIBASE` varchar(20)  DEFAULT NULL,
  `CONTEXTS` varchar(255)  DEFAULT NULL,
  `LABELS` varchar(255)  DEFAULT NULL,
  `DEPLOYMENT_ID` varchar(10)  DEFAULT NULL
) ENGINE=InnoDB  ;

-- ----------------------------
-- Records of DATABASECHANGELOG
-- ----------------------------
BEGIN;
INSERT INTO `DATABASECHANGELOG` VALUES ('2023-07-05-000001', 'larry', 'liquibase/master.xml', '2023-11-28 22:58:00', 1, 'EXECUTED', '8:dcb0bc31f76d4ef65581ac4768b0c362', 'sqlFile', '', NULL, '4.3.5', 'main', NULL, '1230279743');
INSERT INTO `DATABASECHANGELOG` VALUES ('2023-07-05-000002', 'larry', 'liquibase/master.xml', '2023-11-28 22:58:00', 2, 'EXECUTED', '8:c4ea586d632f10998b78d2879c7dc3ca', 'sqlFile', '', NULL, '4.3.5', 'main', NULL, '1230279743');
COMMIT;

-- ----------------------------
-- Table structure for DATABASECHANGELOGLOCK
-- ----------------------------
DROP TABLE IF EXISTS `DATABASECHANGELOGLOCK`;
CREATE TABLE `DATABASECHANGELOGLOCK` (
  `ID` int NOT NULL,
  `LOCKED` bit(1) NOT NULL,
  `LOCKGRANTED` datetime DEFAULT NULL,
  `LOCKEDBY` varchar(255)  DEFAULT NULL,
  PRIMARY KEY (`ID`) USING BTREE
) ENGINE=InnoDB  ;

-- ----------------------------
-- Records of DATABASECHANGELOGLOCK
-- ----------------------------
BEGIN;
INSERT INTO `DATABASECHANGELOGLOCK` VALUES (1, b'0', NULL, NULL);
COMMIT;

-- ----------------------------
-- Table structure for gen_table
-- ----------------------------
DROP TABLE IF EXISTS `gen_table`;
CREATE TABLE `gen_table` (
  `table_id` bigint NOT NULL AUTO_INCREMENT COMMENT '编号',
  `table_name` varchar(200)  DEFAULT '' COMMENT '表名称',
  `table_comment` varchar(500)  DEFAULT '' COMMENT '表描述',
  `sub_table_name` varchar(64)  DEFAULT NULL COMMENT '关联子表的表名',
  `sub_table_fk_name` varchar(64)  DEFAULT NULL COMMENT '子表关联的外键名',
  `class_name` varchar(100)  DEFAULT '' COMMENT '实体类名称',
  `tpl_category` varchar(200)  DEFAULT 'crud' COMMENT '使用的模板（crud单表操作 tree树表操作）',
  `package_name` varchar(100)  DEFAULT NULL COMMENT '生成包路径',
  `module_name` varchar(30)  DEFAULT NULL COMMENT '生成模块名',
  `business_name` varchar(30)  DEFAULT NULL COMMENT '生成业务名',
  `function_name` varchar(50)  DEFAULT NULL COMMENT '生成功能名',
  `function_author` varchar(50)  DEFAULT NULL COMMENT '生成功能作者',
  `gen_type` char(1)  DEFAULT '0' COMMENT '生成代码方式（0zip压缩包 1自定义路径）',
  `gen_path` varchar(200)  DEFAULT '/' COMMENT '生成路径（不填默认项目路径）',
  `options` varchar(1000)  DEFAULT NULL COMMENT '其它生成选项',
  `create_by` varchar(64)  DEFAULT '' COMMENT '创建者',
  `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(64)  DEFAULT '' COMMENT '更新者',
  `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  `remark` varchar(500)  DEFAULT NULL COMMENT '备注',
  PRIMARY KEY (`table_id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1   COMMENT='代码生成业务表';

-- ----------------------------
-- Records of gen_table
-- ----------------------------
BEGIN;
COMMIT;

-- ----------------------------
-- Table structure for gen_table_column
-- ----------------------------
DROP TABLE IF EXISTS `gen_table_column`;
CREATE TABLE `gen_table_column` (
  `column_id` bigint NOT NULL AUTO_INCREMENT COMMENT '编号',
  `table_id` bigint DEFAULT NULL COMMENT '归属表编号',
  `column_name` varchar(200)  DEFAULT NULL COMMENT '列名称',
  `column_comment` varchar(500)  DEFAULT NULL COMMENT '列描述',
  `column_type` varchar(100)  DEFAULT NULL COMMENT '列类型',
  `java_type` varchar(500)  DEFAULT NULL COMMENT 'JAVA类型',
  `java_field` varchar(200)  DEFAULT NULL COMMENT 'JAVA字段名',
  `is_pk` char(1)  DEFAULT NULL COMMENT '是否主键（1是）',
  `is_increment` char(1)  DEFAULT NULL COMMENT '是否自增（1是）',
  `is_required` char(1)  DEFAULT NULL COMMENT '是否必填（1是）',
  `is_insert` char(1)  DEFAULT NULL COMMENT '是否为插入字段（1是）',
  `is_edit` char(1)  DEFAULT NULL COMMENT '是否编辑字段（1是）',
  `is_list` char(1)  DEFAULT NULL COMMENT '是否列表字段（1是）',
  `is_query` char(1)  DEFAULT NULL COMMENT '是否查询字段（1是）',
  `query_type` varchar(200)  DEFAULT 'EQ' COMMENT '查询方式（等于、不等于、大于、小于、范围）',
  `html_type` varchar(200)  DEFAULT NULL COMMENT '显示类型（文本框、文本域、下拉框、复选框、单选框、日期控件）',
  `dict_type` varchar(200)  DEFAULT '' COMMENT '字典类型',
  `sort` int DEFAULT NULL COMMENT '排序',
  `create_by` varchar(64)  DEFAULT '' COMMENT '创建者',
  `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(64)  DEFAULT '' COMMENT '更新者',
  `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  PRIMARY KEY (`column_id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1   COMMENT='代码生成业务表字段';

-- ----------------------------
-- Records of gen_table_column
-- ----------------------------
BEGIN;
COMMIT;

-- ----------------------------
-- Table structure for QRTZ_BLOB_TRIGGERS
-- ----------------------------
DROP TABLE IF EXISTS `QRTZ_BLOB_TRIGGERS`;
CREATE TABLE `QRTZ_BLOB_TRIGGERS` (
  `sched_name` varchar(120)  NOT NULL COMMENT '调度名称',
  `trigger_name` varchar(200)  NOT NULL COMMENT 'qrtz_triggers表trigger_name的外键',
  `trigger_group` varchar(200)  NOT NULL COMMENT 'qrtz_triggers表trigger_group的外键',
  `blob_data` blob COMMENT '存放持久化Trigger对象',
  PRIMARY KEY (`sched_name`,`trigger_name`,`trigger_group`) USING BTREE,
  CONSTRAINT `QRTZ_BLOB_TRIGGERS_ibfk_1` FOREIGN KEY (`sched_name`, `trigger_name`, `trigger_group`) REFERENCES `QRTZ_TRIGGERS` (`sched_name`, `trigger_name`, `trigger_group`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE=InnoDB   COMMENT='Blob类型的触发器表';

-- ----------------------------
-- Records of QRTZ_BLOB_TRIGGERS
-- ----------------------------
BEGIN;
COMMIT;

-- ----------------------------
-- Table structure for QRTZ_CALENDARS
-- ----------------------------
DROP TABLE IF EXISTS `QRTZ_CALENDARS`;
CREATE TABLE `QRTZ_CALENDARS` (
  `sched_name` varchar(120)  NOT NULL COMMENT '调度名称',
  `calendar_name` varchar(200)  NOT NULL COMMENT '日历名称',
  `calendar` blob NOT NULL COMMENT '存放持久化calendar对象',
  PRIMARY KEY (`sched_name`,`calendar_name`) USING BTREE
) ENGINE=InnoDB   COMMENT='日历信息表';

-- ----------------------------
-- Records of QRTZ_CALENDARS
-- ----------------------------
BEGIN;
COMMIT;

-- ----------------------------
-- Table structure for QRTZ_CRON_TRIGGERS
-- ----------------------------
DROP TABLE IF EXISTS `QRTZ_CRON_TRIGGERS`;
CREATE TABLE `QRTZ_CRON_TRIGGERS` (
  `sched_name` varchar(120)  NOT NULL COMMENT '调度名称',
  `trigger_name` varchar(200)  NOT NULL COMMENT 'qrtz_triggers表trigger_name的外键',
  `trigger_group` varchar(200)  NOT NULL COMMENT 'qrtz_triggers表trigger_group的外键',
  `cron_expression` varchar(200)  NOT NULL COMMENT 'cron表达式',
  `time_zone_id` varchar(80)  DEFAULT NULL COMMENT '时区',
  PRIMARY KEY (`sched_name`,`trigger_name`,`trigger_group`) USING BTREE,
  CONSTRAINT `QRTZ_CRON_TRIGGERS_ibfk_1` FOREIGN KEY (`sched_name`, `trigger_name`, `trigger_group`) REFERENCES `QRTZ_TRIGGERS` (`sched_name`, `trigger_name`, `trigger_group`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE=InnoDB   COMMENT='Cron类型的触发器表';

-- ----------------------------
-- Records of QRTZ_CRON_TRIGGERS
-- ----------------------------
BEGIN;
COMMIT;

-- ----------------------------
-- Table structure for QRTZ_FIRED_TRIGGERS
-- ----------------------------
DROP TABLE IF EXISTS `QRTZ_FIRED_TRIGGERS`;
CREATE TABLE `QRTZ_FIRED_TRIGGERS` (
  `sched_name` varchar(120)  NOT NULL COMMENT '调度名称',
  `entry_id` varchar(95)  NOT NULL COMMENT '调度器实例id',
  `trigger_name` varchar(200)  NOT NULL COMMENT 'qrtz_triggers表trigger_name的外键',
  `trigger_group` varchar(200)  NOT NULL COMMENT 'qrtz_triggers表trigger_group的外键',
  `instance_name` varchar(200)  NOT NULL COMMENT '调度器实例名',
  `fired_time` bigint NOT NULL COMMENT '触发的时间',
  `sched_time` bigint NOT NULL COMMENT '定时器制定的时间',
  `priority` int NOT NULL COMMENT '优先级',
  `state` varchar(16)  NOT NULL COMMENT '状态',
  `job_name` varchar(200)  DEFAULT NULL COMMENT '任务名称',
  `job_group` varchar(200)  DEFAULT NULL COMMENT '任务组名',
  `is_nonconcurrent` varchar(1)  DEFAULT NULL COMMENT '是否并发',
  `requests_recovery` varchar(1)  DEFAULT NULL COMMENT '是否接受恢复执行',
  PRIMARY KEY (`sched_name`,`entry_id`) USING BTREE
) ENGINE=InnoDB   COMMENT='已触发的触发器表';

-- ----------------------------
-- Records of QRTZ_FIRED_TRIGGERS
-- ----------------------------
BEGIN;
COMMIT;

-- ----------------------------
-- Table structure for QRTZ_JOB_DETAILS
-- ----------------------------
DROP TABLE IF EXISTS `QRTZ_JOB_DETAILS`;
CREATE TABLE `QRTZ_JOB_DETAILS` (
  `sched_name` varchar(120)  NOT NULL COMMENT '调度名称',
  `job_name` varchar(200)  NOT NULL COMMENT '任务名称',
  `job_group` varchar(200)  NOT NULL COMMENT '任务组名',
  `description` varchar(250)  DEFAULT NULL COMMENT '相关介绍',
  `job_class_name` varchar(250)  NOT NULL COMMENT '执行任务类名称',
  `is_durable` varchar(1)  NOT NULL COMMENT '是否持久化',
  `is_nonconcurrent` varchar(1)  NOT NULL COMMENT '是否并发',
  `is_update_data` varchar(1)  NOT NULL COMMENT '是否更新数据',
  `requests_recovery` varchar(1)  NOT NULL COMMENT '是否接受恢复执行',
  `job_data` blob COMMENT '存放持久化job对象',
  PRIMARY KEY (`sched_name`,`job_name`,`job_group`) USING BTREE
) ENGINE=InnoDB   COMMENT='任务详细信息表';

-- ----------------------------
-- Records of QRTZ_JOB_DETAILS
-- ----------------------------
BEGIN;
INSERT INTO `QRTZ_JOB_DETAILS` VALUES ('cnlarryScheduler', 'TASK_CLASS_NAME1625662024390561794', 'SYSTEM', NULL, 'cn.larry.job.util.QuartzDisallowConcurrentExecution', '0', '1', '0', '0', 0xACED0005737200156F72672E71756172747A2E4A6F62446174614D61709FB083E8BFA9B0CB020000787200266F72672E71756172747A2E7574696C732E537472696E674B65794469727479466C61674D61708208E8C3FBC55D280200015A0013616C6C6F77735472616E7369656E74446174617872001D6F72672E71756172747A2E7574696C732E4469727479466C61674D617013E62EAD28760ACE0200025A000564697274794C00036D617074000F4C6A6176612F7574696C2F4D61703B787001737200116A6176612E7574696C2E486173684D61700507DAC1C31660D103000246000A6C6F6164466163746F724900097468726573686F6C6478703F4000000000000C7708000000100000000174000F5441534B5F50524F504552544945537372001B636F6D2E72756F79692E6A6F622E646F6D61696E2E5379734A6F6200000000000000010200094C000A636F6E63757272656E747400124C6A6176612F6C616E672F537472696E673B4C000E63726F6E45787072657373696F6E71007E00094C000269647400104C6A6176612F6C616E672F4C6F6E673B4C000C696E766F6B6554617267657471007E00094C00086A6F6247726F757071007E00094C00076A6F624E616D6571007E00094C000D6D697366697265506F6C69637971007E00094C000672656D61726B71007E00094C000673746174757371007E000978720027636F6D2E72756F79692E636F6D6D6F6E2E636F72652E646F6D61696E2E42617365456E7469747900000000000000010200084C0008637265617465427971007E00094C000A63726561746554696D657400104C6A6176612F7574696C2F446174653B4C00096461746153636F706571007E00094C000664657074496471007E000A4C0006706172616D7371007E00034C000B73656172636856616C756571007E00094C0008757064617465427971007E00094C000A75706461746554696D6571007E000C7870707070707371007E00053F4000000000000077080000001000000000787070707400015974001330203020382C31322C3136202A202A203F202A7372000E6A6176612E6C616E672E4C6F6E673B8BE490CC8F23DF0200014A000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B0200007870168F82FF80A450027400206E6F746963654576656E7453657276696365496D706C2E6A6F6252756E6E657274000653595354454D74000CE4BA8BE4BBB6E9809AE79FA57400013174000CE4BA8BE4BBB6E9809AE79FA5740001307800);
COMMIT;

-- ----------------------------
-- Table structure for QRTZ_LOCKS
-- ----------------------------
DROP TABLE IF EXISTS `QRTZ_LOCKS`;
CREATE TABLE `QRTZ_LOCKS` (
  `sched_name` varchar(120)  NOT NULL COMMENT '调度名称',
  `lock_name` varchar(40)  NOT NULL COMMENT '悲观锁名称',
  PRIMARY KEY (`sched_name`,`lock_name`) USING BTREE
) ENGINE=InnoDB   COMMENT='存储的悲观锁信息表';

-- ----------------------------
-- Records of QRTZ_LOCKS
-- ----------------------------
BEGIN;
INSERT INTO `QRTZ_LOCKS` VALUES ('cnlarryScheduler', 'TRIGGER_ACCESS');
COMMIT;

-- ----------------------------
-- Table structure for QRTZ_PAUSED_TRIGGER_GRPS
-- ----------------------------
DROP TABLE IF EXISTS `QRTZ_PAUSED_TRIGGER_GRPS`;
CREATE TABLE `QRTZ_PAUSED_TRIGGER_GRPS` (
  `sched_name` varchar(120)  NOT NULL COMMENT '调度名称',
  `trigger_group` varchar(200)  NOT NULL COMMENT 'qrtz_triggers表trigger_group的外键',
  PRIMARY KEY (`sched_name`,`trigger_group`) USING BTREE
) ENGINE=InnoDB   COMMENT='暂停的触发器表';

-- ----------------------------
-- Records of QRTZ_PAUSED_TRIGGER_GRPS
-- ----------------------------
BEGIN;
COMMIT;

-- ----------------------------
-- Table structure for QRTZ_SCHEDULER_STATE
-- ----------------------------
DROP TABLE IF EXISTS `QRTZ_SCHEDULER_STATE`;
CREATE TABLE `QRTZ_SCHEDULER_STATE` (
  `sched_name` varchar(120)  NOT NULL COMMENT '调度名称',
  `instance_name` varchar(200)  NOT NULL COMMENT '实例名称',
  `last_checkin_time` bigint NOT NULL COMMENT '上次检查时间',
  `checkin_interval` bigint NOT NULL COMMENT '检查间隔时间',
  PRIMARY KEY (`sched_name`,`instance_name`) USING BTREE
) ENGINE=InnoDB   COMMENT='调度器状态表';

-- ----------------------------
-- Records of QRTZ_SCHEDULER_STATE
-- ----------------------------
BEGIN;
COMMIT;

-- ----------------------------
-- Table structure for QRTZ_SIMPLE_TRIGGERS
-- ----------------------------
DROP TABLE IF EXISTS `QRTZ_SIMPLE_TRIGGERS`;
CREATE TABLE `QRTZ_SIMPLE_TRIGGERS` (
  `sched_name` varchar(120)  NOT NULL COMMENT '调度名称',
  `trigger_name` varchar(200)  NOT NULL COMMENT 'qrtz_triggers表trigger_name的外键',
  `trigger_group` varchar(200)  NOT NULL COMMENT 'qrtz_triggers表trigger_group的外键',
  `repeat_count` bigint NOT NULL COMMENT '重复的次数统计',
  `repeat_interval` bigint NOT NULL COMMENT '重复的间隔时间',
  `times_triggered` bigint NOT NULL COMMENT '已经触发的次数',
  PRIMARY KEY (`sched_name`,`trigger_name`,`trigger_group`) USING BTREE,
  CONSTRAINT `QRTZ_SIMPLE_TRIGGERS_ibfk_1` FOREIGN KEY (`sched_name`, `trigger_name`, `trigger_group`) REFERENCES `QRTZ_TRIGGERS` (`sched_name`, `trigger_name`, `trigger_group`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE=InnoDB   COMMENT='简单触发器的信息表';

-- ----------------------------
-- Records of QRTZ_SIMPLE_TRIGGERS
-- ----------------------------
BEGIN;
COMMIT;

-- ----------------------------
-- Table structure for QRTZ_SIMPROP_TRIGGERS
-- ----------------------------
DROP TABLE IF EXISTS `QRTZ_SIMPROP_TRIGGERS`;
CREATE TABLE `QRTZ_SIMPROP_TRIGGERS` (
  `sched_name` varchar(120)  NOT NULL COMMENT '调度名称',
  `trigger_name` varchar(200)  NOT NULL COMMENT 'qrtz_triggers表trigger_name的外键',
  `trigger_group` varchar(200)  NOT NULL COMMENT 'qrtz_triggers表trigger_group的外键',
  `str_prop_1` varchar(512)  DEFAULT NULL COMMENT 'String类型的trigger的第一个参数',
  `str_prop_2` varchar(512)  DEFAULT NULL COMMENT 'String类型的trigger的第二个参数',
  `str_prop_3` varchar(512)  DEFAULT NULL COMMENT 'String类型的trigger的第三个参数',
  `int_prop_1` int DEFAULT NULL COMMENT 'int类型的trigger的第一个参数',
  `int_prop_2` int DEFAULT NULL COMMENT 'int类型的trigger的第二个参数',
  `long_prop_1` bigint DEFAULT NULL COMMENT 'long类型的trigger的第一个参数',
  `long_prop_2` bigint DEFAULT NULL COMMENT 'long类型的trigger的第二个参数',
  `dec_prop_1` decimal(13,4) DEFAULT NULL COMMENT 'decimal类型的trigger的第一个参数',
  `dec_prop_2` decimal(13,4) DEFAULT NULL COMMENT 'decimal类型的trigger的第二个参数',
  `bool_prop_1` varchar(1)  DEFAULT NULL COMMENT 'Boolean类型的trigger的第一个参数',
  `bool_prop_2` varchar(1)  DEFAULT NULL COMMENT 'Boolean类型的trigger的第二个参数',
  PRIMARY KEY (`sched_name`,`trigger_name`,`trigger_group`) USING BTREE,
  CONSTRAINT `QRTZ_SIMPROP_TRIGGERS_ibfk_1` FOREIGN KEY (`sched_name`, `trigger_name`, `trigger_group`) REFERENCES `QRTZ_TRIGGERS` (`sched_name`, `trigger_name`, `trigger_group`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE=InnoDB   COMMENT='同步机制的行锁表';

-- ----------------------------
-- Records of QRTZ_SIMPROP_TRIGGERS
-- ----------------------------
BEGIN;
COMMIT;

-- ----------------------------
-- Table structure for QRTZ_TRIGGERS
-- ----------------------------
DROP TABLE IF EXISTS `QRTZ_TRIGGERS`;
CREATE TABLE `QRTZ_TRIGGERS` (
  `sched_name` varchar(120)  NOT NULL COMMENT '调度名称',
  `trigger_name` varchar(200)  NOT NULL COMMENT '触发器的名字',
  `trigger_group` varchar(200)  NOT NULL COMMENT '触发器所属组的名字',
  `job_name` varchar(200)  NOT NULL COMMENT 'qrtz_job_details表job_name的外键',
  `job_group` varchar(200)  NOT NULL COMMENT 'qrtz_job_details表job_group的外键',
  `description` varchar(250)  DEFAULT NULL COMMENT '相关介绍',
  `next_fire_time` bigint DEFAULT NULL COMMENT '上一次触发时间（毫秒）',
  `prev_fire_time` bigint DEFAULT NULL COMMENT '下一次触发时间（默认为-1表示不触发）',
  `priority` int DEFAULT NULL COMMENT '优先级',
  `trigger_state` varchar(16)  NOT NULL COMMENT '触发器状态',
  `trigger_type` varchar(8)  NOT NULL COMMENT '触发器的类型',
  `start_time` bigint NOT NULL COMMENT '开始时间',
  `end_time` bigint DEFAULT NULL COMMENT '结束时间',
  `calendar_name` varchar(200)  DEFAULT NULL COMMENT '日程表名称',
  `misfire_instr` smallint DEFAULT NULL COMMENT '补偿执行的策略',
  `job_data` blob COMMENT '存放持久化job对象',
  PRIMARY KEY (`sched_name`,`trigger_name`,`trigger_group`) USING BTREE,
  KEY `sched_name` (`sched_name`,`job_name`,`job_group`) USING BTREE,
  CONSTRAINT `QRTZ_TRIGGERS_ibfk_1` FOREIGN KEY (`sched_name`, `job_name`, `job_group`) REFERENCES `QRTZ_JOB_DETAILS` (`sched_name`, `job_name`, `job_group`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE=InnoDB   COMMENT='触发器详细信息表';

-- ----------------------------
-- Records of QRTZ_TRIGGERS
-- ----------------------------
BEGIN;
COMMIT;

-- ----------------------------
-- Table structure for sys_addr
-- ----------------------------
DROP TABLE IF EXISTS `sys_addr`;
CREATE TABLE `sys_addr` (
  `addr_id` bigint NOT NULL COMMENT '地址id',
  `parent_id` bigint DEFAULT '0' COMMENT '父地址id',
  `ancestors` varchar(500)  DEFAULT '' COMMENT '祖级列表',
  `addr_name` varchar(50)  DEFAULT '' COMMENT '地址名称',
  `order_num` int DEFAULT '1' COMMENT '显示顺序',
  `status` char(1)  DEFAULT '1' COMMENT '地址状态（1正常 0停用）',
  `create_by` varchar(64)  DEFAULT '' COMMENT '创建者',
  `update_by` varchar(64)  DEFAULT '' COMMENT '更新者',
  `create_time` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `update_time` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  PRIMARY KEY (`addr_id`) USING BTREE,
  UNIQUE KEY `sysaddr_id1` (`addr_id`,`parent_id`) USING BTREE,
  KEY `sysaddr_id2` (`status`,`order_num`) USING BTREE,
  KEY `sysaddr_id3` (`addr_name`) USING BTREE
) ENGINE=InnoDB   COMMENT='地址表';

-- ----------------------------
-- Records of sys_addr
-- ----------------------------
BEGIN;
INSERT INTO `sys_addr` VALUES (1, 0, '0', '江西省', 1, '1', 'admin', '2023-12-11 03:42:22', '', NULL);
INSERT INTO `sys_addr` VALUES (2, 0, '0', '浙江省', 2, '1', 'admin', '2023-12-11 03:42:22', '', NULL);
INSERT INTO `sys_addr` VALUES (3, 0, '0', '湖南省', 3, '1', 'admin', '2023-12-11 03:42:22', '', NULL);
INSERT INTO `sys_addr` VALUES (4, 0, '0', '湖北省', 4, '1', 'admin', '2023-12-11 03:42:22', '', NULL);
INSERT INTO `sys_addr` VALUES (101, 1, '0,101', '南昌市', 1, '1', 'admin', '2023-12-11 03:42:22', '', NULL);
INSERT INTO `sys_addr` VALUES (102, 1, '0,102', '景德镇市', 2, '1', 'admin', '2023-12-11 03:42:22', '', NULL);
INSERT INTO `sys_addr` VALUES (103, 1, '0,103', '萍乡市', 3, '1', 'admin', '2023-12-11 03:42:22', '', NULL);
INSERT INTO `sys_addr` VALUES (104, 1, '0,104', '九江市', 4, '1', 'admin', '2023-12-11 03:42:22', '', NULL);
INSERT INTO `sys_addr` VALUES (105, 1, '0,105', '新余市', 5, '1', 'admin', '2023-12-11 03:42:22', '', NULL);
INSERT INTO `sys_addr` VALUES (106, 1, '0,106', '鹰潭市', 6, '1', 'admin', '2023-12-11 03:42:22', '', NULL);
INSERT INTO `sys_addr` VALUES (107, 1, '0,107', '赣州市', 7, '1', 'admin', '2023-12-11 03:42:22', '', NULL);
INSERT INTO `sys_addr` VALUES (108, 1, '0,108', '吉安市', 8, '1', 'admin', '2023-12-11 03:42:22', '', NULL);
INSERT INTO `sys_addr` VALUES (109, 1, '0,109', '宜春市', 9, '1', 'admin', '2023-12-11 03:42:22', '', NULL);
INSERT INTO `sys_addr` VALUES (110, 1, '0,110', '抚州市', 10, '1', 'admin', '2023-12-11 03:42:22', '', NULL);
INSERT INTO `sys_addr` VALUES (111, 1, '0,111', '上饶市', 11, '1', 'admin', '2023-12-11 03:42:22', '', NULL);
INSERT INTO `sys_addr` VALUES (112, 105, '0,105,112', '渝水区', 1, '1', 'admin', '2023-12-11 03:42:22', '', NULL);
INSERT INTO `sys_addr` VALUES (113, 105, '0,105,113', '分宜县', 2, '1', 'admin', '2023-12-11 03:42:22', '', NULL);
INSERT INTO `sys_addr` VALUES (114, 105, '0,105,114', '高新区', 3, '1', 'admin', '2023-12-11 03:42:22', '', NULL);
INSERT INTO `sys_addr` VALUES (115, 105, '0,105,115', '仙女湖区', 4, '1', 'admin', '2023-12-11 03:42:22', '', NULL);
INSERT INTO `sys_addr` VALUES (116, 105, '0,105,116', '新宜吉合作示范区', 5, '1', 'admin', '2023-12-11 03:42:22', '', NULL);
COMMIT;

-- ----------------------------
-- Table structure for sys_config
-- ----------------------------
DROP TABLE IF EXISTS `sys_config`;
CREATE TABLE `sys_config` (
  `config_id` int NOT NULL AUTO_INCREMENT COMMENT '参数主键',
  `config_name` varchar(100)  DEFAULT '' COMMENT '参数名称',
  `config_key` varchar(100)  DEFAULT '' COMMENT '参数键名',
  `config_value` varchar(500)  DEFAULT '' COMMENT '参数键值',
  `config_type` char(1)  DEFAULT 'N' COMMENT '系统内置（Y是 N否）',
  `create_by` varchar(64)  DEFAULT '' COMMENT '创建者',
  `update_by` varchar(64)  DEFAULT '' COMMENT '更新者',
  `create_time` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `update_time` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  `remark` varchar(500)  DEFAULT NULL COMMENT '备注',
  PRIMARY KEY (`config_id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=100   COMMENT='参数配置表';

-- ----------------------------
-- Records of sys_config
-- ----------------------------
BEGIN;
INSERT INTO `sys_config` VALUES (1, '主框架页-默认皮肤样式名称', 'sys.index.skinName', 'skin-blue', 'Y', 'admin', '2023-11-29 01:33:37', '', NULL, '蓝色 skin-blue、绿色 skin-green、紫色 skin-purple、红色 skin-red、黄色 skin-yellow');
INSERT INTO `sys_config` VALUES (2, '用户管理-账号初始密码', 'sys.user.initPassword', '000000', 'Y', 'admin', '2023-11-29 01:33:37', '', NULL, '初始化密码：000000');
INSERT INTO `sys_config` VALUES (3, '主框架页-侧边栏主题', 'sys.index.sideTheme', 'theme-dark', 'Y', 'admin', '2023-11-29 01:33:37', '', NULL, '深色主题theme-dark，浅色主题theme-light');
INSERT INTO `sys_config` VALUES (4, '账号自助-验证码开关', 'sys.account.captchaEnabled', 'true', 'Y', 'admin', '2023-11-29 01:33:37', '', NULL, '是否开启验证码功能（true开启，false关闭）');
INSERT INTO `sys_config` VALUES (5, '账号自助-是否开启用户注册功能', 'sys.account.registerUser', 'false', 'Y', 'admin', '2023-11-29 01:33:37', '', NULL, '是否开启注册用户功能（true开启，false关闭）');
INSERT INTO `sys_config` VALUES (6, '用户登录-黑名单列表', 'sys.login.blackIPList', '', 'Y', 'admin', '2023-11-29 01:33:37', '', NULL, '设置登录IP黑名单限制，多个匹配项以;分隔，支持匹配（*通配、网段）');
COMMIT;

-- ----------------------------
-- Table structure for sys_dept
-- ----------------------------
DROP TABLE IF EXISTS `sys_dept`;
CREATE TABLE `sys_dept` (
  `dept_id` bigint NOT NULL AUTO_INCREMENT COMMENT '部门id',
  `parent_id` bigint DEFAULT '0' COMMENT '父部门id',
  `ancestors` varchar(50)  DEFAULT '' COMMENT '祖级列表',
  `dept_name` varchar(30)  DEFAULT '' COMMENT '部门名称',
  `order_num` int DEFAULT '1' COMMENT '显示顺序',
  `leader` varchar(20)  DEFAULT NULL COMMENT '负责人',
  `phone` varchar(11)  DEFAULT NULL COMMENT '联系电话',
  `email` varchar(50)  DEFAULT NULL COMMENT '邮箱',
  `status` char(1)  DEFAULT '1' COMMENT '部门状态（1正常 0停用）',
  `del_flag` char(1)  DEFAULT '0' COMMENT '删除标志（0代表存在 1代表删除）',
  `create_by` varchar(64)  DEFAULT '' COMMENT '创建者',
  `update_by` varchar(64)  DEFAULT '' COMMENT '更新者',
  `create_time` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `update_time` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  PRIMARY KEY (`dept_id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=200   COMMENT='部门表';

-- ----------------------------
-- Records of sys_dept
-- ----------------------------
BEGIN;
INSERT INTO `sys_dept` VALUES (100, 0, '0', 'cn-larry科技', 0, 'cn-larry', '15888888888', 'ry@qq.com', '1', '0', 'admin', '2023-11-29 01:33:32', '', NULL);
INSERT INTO `sys_dept` VALUES (101, 100, '0,100', '江西总公司', 1, 'cn-larry', '15888888888', 'ry@qq.com', '1', '0', 'admin', '2023-11-29 01:33:32', '', NULL);
INSERT INTO `sys_dept` VALUES (102, 100, '0,100', '北京分公司', 2, 'cn-larry', '15888888888', 'ry@qq.com', '1', '0', 'admin', '2023-11-29 01:33:32', '', NULL);
INSERT INTO `sys_dept` VALUES (103, 101, '0,100,101', '研发部门', 1, 'cn-larry', '15888888888', 'ry@qq.com', '1', '0', 'admin', '2023-11-29 01:33:32', '', NULL);
INSERT INTO `sys_dept` VALUES (104, 101, '0,100,101', '市场部门', 2, 'cn-larry', '15888888888', 'ry@qq.com', '1', '0', 'admin', '2023-11-29 01:33:32', '', NULL);
INSERT INTO `sys_dept` VALUES (105, 101, '0,100,101', '测试部门', 3, 'cn-larry', '15888888888', 'ry@qq.com', '1', '0', 'admin', '2023-11-29 01:33:32', '', NULL);
INSERT INTO `sys_dept` VALUES (106, 101, '0,100,101', '财务部门', 4, 'cn-larry', '15888888888', 'ry@qq.com', '1', '0', 'admin', '2023-11-29 01:33:32', '', NULL);
INSERT INTO `sys_dept` VALUES (107, 101, '0,100,101', '运维部门', 5, 'cn-larry', '15888888888', 'ry@qq.com', '1', '0', 'admin', '2023-11-29 01:33:32', '', NULL);
INSERT INTO `sys_dept` VALUES (108, 102, '0,100,102', '市场部门', 1, 'cn-larry', '15888888888', 'ry@qq.com', '1', '0', 'admin', '2023-11-29 01:33:32', '', NULL);
INSERT INTO `sys_dept` VALUES (109, 102, '0,100,102', '财务部门', 2, 'cn-larry', '15888888888', 'ry@qq.com', '1', '0', 'admin', '2023-11-29 01:33:32', '', NULL);
COMMIT;

-- ----------------------------
-- Table structure for sys_dict_data
-- ----------------------------
DROP TABLE IF EXISTS `sys_dict_data`;
CREATE TABLE `sys_dict_data` (
  `dict_code` bigint NOT NULL AUTO_INCREMENT COMMENT '字典编码',
  `dict_sort` int DEFAULT '1' COMMENT '字典排序',
  `dict_label` varchar(100)  DEFAULT '' COMMENT '字典标签',
  `dict_value` varchar(100)  DEFAULT '' COMMENT '字典键值',
  `dict_type` varchar(100)  DEFAULT '' COMMENT '字典类型',
  `css_class` varchar(100)  DEFAULT NULL COMMENT '样式属性（其他样式扩展）',
  `list_class` varchar(100)  DEFAULT NULL COMMENT '表格回显样式',
  `is_default` char(1)  DEFAULT 'N' COMMENT '是否默认（Y是 N否）',
  `status` char(1)  DEFAULT '1' COMMENT '状态（1正常 0停用）',
  `create_by` varchar(64)  DEFAULT '' COMMENT '创建者',
  `update_by` varchar(64)  DEFAULT '' COMMENT '更新者',
  `create_time` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `update_time` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  `remark` varchar(500)  DEFAULT NULL COMMENT '备注',
  PRIMARY KEY (`dict_code`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=67   COMMENT='字典数据表';

-- ----------------------------
-- Records of sys_dict_data
-- ----------------------------
BEGIN;
INSERT INTO `sys_dict_data` VALUES (1, 1, '男', '1', 'sys_user_sex', '', '', 'Y', '1', 'admin', '2023-12-09 04:10:48', '', NULL, '性别男');
INSERT INTO `sys_dict_data` VALUES (2, 2, '女', '0', 'sys_user_sex', '', '', 'N', '1', 'admin', '2023-12-09 04:10:48', '', NULL, '性别女');
INSERT INTO `sys_dict_data` VALUES (3, 3, '未知', '2', 'sys_user_sex', '', '', 'N', '1', 'admin', '2023-12-09 04:10:48', '', NULL, '性别未知');
INSERT INTO `sys_dict_data` VALUES (4, 1, '显示', '1', 'sys_show_hide', '', 'primary', 'Y', '1', 'admin', '2023-12-09 04:10:48', '', NULL, '显示菜单');
INSERT INTO `sys_dict_data` VALUES (5, 2, '隐藏', '0', 'sys_show_hide', '', 'danger', 'N', '1', 'admin', '2023-12-09 04:10:48', '', NULL, '隐藏菜单');
INSERT INTO `sys_dict_data` VALUES (6, 1, '正常', '1', 'sys_normal_disable', '', 'primary', 'Y', '1', 'admin', '2023-12-09 04:10:48', '', NULL, '正常状态');
INSERT INTO `sys_dict_data` VALUES (7, 2, '停用', '0', 'sys_normal_disable', '', 'danger', 'N', '1', 'admin', '2023-12-09 04:10:48', '', NULL, '停用状态');
INSERT INTO `sys_dict_data` VALUES (8, 1, '正常', '0', 'sys_job_status', '', 'primary', 'Y', '1', 'admin', '2023-12-09 04:10:48', '', NULL, '正常状态');
INSERT INTO `sys_dict_data` VALUES (9, 2, '暂停', '1', 'sys_job_status', '', 'danger', 'N', '1', 'admin', '2023-12-09 04:10:48', '', NULL, '停用状态');
INSERT INTO `sys_dict_data` VALUES (10, 1, '默认', 'DEFAULT', 'sys_job_group', '', '', 'Y', '1', 'admin', '2023-12-09 04:10:48', '', NULL, '默认分组');
INSERT INTO `sys_dict_data` VALUES (11, 2, '系统', 'SYSTEM', 'sys_job_group', '', '', 'N', '1', 'admin', '2023-12-09 04:10:48', '', NULL, '系统分组');
INSERT INTO `sys_dict_data` VALUES (12, 1, '是', 'Y', 'sys_yes_no', '', 'primary', 'Y', '1', 'admin', '2023-12-09 04:10:48', '', NULL, '系统默认是');
INSERT INTO `sys_dict_data` VALUES (13, 2, '否', 'N', 'sys_yes_no', '', 'danger', 'N', '1', 'admin', '2023-12-09 04:10:48', '', NULL, '系统默认否');
INSERT INTO `sys_dict_data` VALUES (14, 1, '通知', '1', 'sys_notice_type', '', 'warning', 'Y', '1', 'admin', '2023-12-09 04:10:48', '', NULL, '通知');
INSERT INTO `sys_dict_data` VALUES (15, 2, '公告', '2', 'sys_notice_type', '', 'success', 'N', '1', 'admin', '2023-12-09 04:10:48', '', NULL, '公告');
INSERT INTO `sys_dict_data` VALUES (16, 1, '正常', '0', 'sys_notice_status', '', 'primary', 'Y', '1', 'admin', '2023-12-09 04:10:48', '', NULL, '正常状态');
INSERT INTO `sys_dict_data` VALUES (17, 2, '关闭', '1', 'sys_notice_status', '', 'danger', 'N', '1', 'admin', '2023-12-09 04:10:48', 'admin', '2023-12-13 04:01:36', '关闭状态');
INSERT INTO `sys_dict_data` VALUES (18, 1, '新增', '1', 'sys_oper_type', '', 'info', 'N', '1', 'admin', '2023-12-09 04:10:48', '', NULL, '新增操作');
INSERT INTO `sys_dict_data` VALUES (19, 2, '修改', '2', 'sys_oper_type', '', 'info', 'N', '1', 'admin', '2023-12-09 04:10:48', '', NULL, '修改操作');
INSERT INTO `sys_dict_data` VALUES (20, 3, '删除', '3', 'sys_oper_type', '', 'danger', 'N', '1', 'admin', '2023-12-09 04:10:48', '', NULL, '删除操作');
INSERT INTO `sys_dict_data` VALUES (21, 4, '授权', '4', 'sys_oper_type', '', 'primary', 'N', '1', 'admin', '2023-12-09 04:10:48', '', NULL, '授权操作');
INSERT INTO `sys_dict_data` VALUES (22, 5, '导出', '5', 'sys_oper_type', '', 'warning', 'N', '1', 'admin', '2023-12-09 04:10:48', '', NULL, '导出操作');
INSERT INTO `sys_dict_data` VALUES (23, 6, '导入', '6', 'sys_oper_type', '', 'warning', 'N', '1', 'admin', '2023-12-09 04:10:48', '', NULL, '导入操作');
INSERT INTO `sys_dict_data` VALUES (24, 7, '强退', '7', 'sys_oper_type', '', 'danger', 'N', '1', 'admin', '2023-12-09 04:10:48', '', NULL, '强退操作');
INSERT INTO `sys_dict_data` VALUES (25, 8, '生成代码', '8', 'sys_oper_type', '', 'warning', 'N', '1', 'admin', '2023-12-09 04:10:48', '', NULL, '生成操作');
INSERT INTO `sys_dict_data` VALUES (26, 9, '清空数据', '9', 'sys_oper_type', '', 'danger', 'N', '1', 'admin', '2023-12-09 04:10:48', '', NULL, '清空操作');
INSERT INTO `sys_dict_data` VALUES (27, 1, '成功', '0', 'sys_common_status', '', 'primary', 'N', '1', 'admin', '2023-12-09 04:10:48', '', NULL, '正常状态');
INSERT INTO `sys_dict_data` VALUES (28, 2, '失败', '1', 'sys_common_status', '', 'danger', 'N', '1', 'admin', '2023-12-09 04:10:49', '', NULL, '停用状态');
INSERT INTO `sys_dict_data` VALUES (29, 99, '其他', '0', 'sys_oper_type', '', 'info', 'N', '1', 'admin', '2023-12-09 04:10:49', '', NULL, '其他操作');
INSERT INTO `sys_dict_data` VALUES (30, 0, '立即执行', '1', 'sys_job_misfire_policy', NULL, 'default', 'N', '1', 'admin', '2023-12-09 04:10:49', 'admin', '2023-12-09 04:10:49', NULL);
INSERT INTO `sys_dict_data` VALUES (31, 0, '执行一次', '2', 'sys_job_misfire_policy', NULL, 'default', 'N', '1', 'admin', '2023-12-09 04:10:49', 'admin', '2023-12-09 04:10:49', NULL);
INSERT INTO `sys_dict_data` VALUES (32, 0, '放弃执行', '3', 'sys_job_misfire_policy', NULL, 'default', 'N', '1', 'admin', '2023-12-09 04:10:49', 'admin', '2023-12-09 04:10:49', NULL);
INSERT INTO `sys_dict_data` VALUES (33, 0, '未执行', '1', 'event_status', NULL, 'default', 'N', '1', 'admin', '2023-12-09 04:10:49', 'admin', '2023-12-09 04:10:49', NULL);
INSERT INTO `sys_dict_data` VALUES (34, 0, '成功', '2', 'event_status', NULL, 'default', 'N', '1', 'admin', '2023-12-09 04:10:49', 'admin', '2023-12-09 04:10:49', NULL);
INSERT INTO `sys_dict_data` VALUES (35, 0, '失败', '3', 'event_status', NULL, 'default', 'N', '1', 'admin', '2023-12-09 04:10:49', 'admin', '2023-12-09 04:10:49', NULL);
INSERT INTO `sys_dict_data` VALUES (36, 0, '不可用', '0', 'sys_status', '', 'danger', 'N', '1', 'admin', '2023-12-09 04:10:49', '', NULL, '不可用状态');
INSERT INTO `sys_dict_data` VALUES (37, 1, '可用', '1', 'sys_status', '', 'primary', 'N', '1', 'admin', '2023-12-09 04:10:49', '', NULL, '可用状态');
INSERT INTO `sys_dict_data` VALUES (38, 1, '公众号', 'pub', 'wx_app_type', '', '', 'Y', '1', 'admin', '2023-12-09 04:10:49', '', NULL, '公众号应用');
INSERT INTO `sys_dict_data` VALUES (39, 2, '小程序', 'minapp', 'wx_app_type', '', '', 'Y', '1', 'admin', '2023-12-09 04:10:49', '', NULL, '小程序应用');
INSERT INTO `sys_dict_data` VALUES (40, 3, '企业微信', 'qywx', 'wx_app_type', '', '', 'Y', '1', 'admin', '2023-12-09 04:10:49', '', NULL, '企业微信应用');
INSERT INTO `sys_dict_data` VALUES (41, 0, '未知', '0', 'unit_type', NULL, 'info', 'N', '1', 'admin', '2023-12-10 21:08:41', 'admin', '2023-12-10 21:08:41', NULL);
INSERT INTO `sys_dict_data` VALUES (42, 1, '政企', '1', 'unit_type', NULL, 'info', 'N', '1', 'admin', '2023-12-10 21:08:41', 'admin', '2023-12-10 21:08:41', NULL);
INSERT INTO `sys_dict_data` VALUES (43, 2, '民企', '2', 'unit_type', NULL, 'info', 'N', '1', 'admin', '2023-12-10 21:08:41', 'admin', '2023-12-10 21:08:41', NULL);
INSERT INTO `sys_dict_data` VALUES (44, 3, '上市企业', '3', 'unit_type', NULL, 'info', 'N', '1', 'admin', '2023-12-10 21:08:41', 'admin', '2023-12-10 21:08:41', NULL);
INSERT INTO `sys_dict_data` VALUES (45, 1, 'A', 'A', 'cust_grade', NULL, 'info', 'N', '1', 'admin', '2023-12-10 21:09:07', 'admin', '2023-12-10 21:09:07', NULL);
INSERT INTO `sys_dict_data` VALUES (46, 2, 'B', 'B', 'cust_grade', NULL, 'info', 'N', '1', 'admin', '2023-12-10 21:09:07', 'admin', '2023-12-10 21:09:07', NULL);
INSERT INTO `sys_dict_data` VALUES (47, 3, 'C', 'C', 'cust_grade', NULL, 'info', 'N', '1', 'admin', '2023-12-10 21:09:07', 'admin', '2023-12-10 21:09:07', NULL);
INSERT INTO `sys_dict_data` VALUES (48, 4, 'D', 'D', 'cust_grade', NULL, 'info', 'N', '1', 'admin', '2023-12-10 21:09:07', 'admin', '2023-12-10 21:09:07', NULL);
INSERT INTO `sys_dict_data` VALUES (49, 1, '走访', '1', 'visit_type', NULL, 'info', 'N', '1', 'admin', '2023-12-10 21:09:26', 'admin', '2023-12-10 21:09:26', NULL);
INSERT INTO `sys_dict_data` VALUES (50, 2, '电话', '2', 'visit_type', NULL, 'info', 'N', '1', 'admin', '2023-12-10 21:09:26', 'admin', '2023-12-10 21:09:26', NULL);
INSERT INTO `sys_dict_data` VALUES (51, 3, '微信', '3', 'visit_type', NULL, 'info', 'N', '1', 'admin', '2023-12-10 21:09:26', 'admin', '2023-12-10 21:09:26', NULL);
INSERT INTO `sys_dict_data` VALUES (52, 0, '未开始', '0', 'project_status', NULL, 'info', 'N', '1', 'admin', '2023-12-10 21:06:53', 'admin', '2023-12-10 21:06:53', NULL);
INSERT INTO `sys_dict_data` VALUES (53, 1, '进行中', '1', 'project_status', '', 'primary', 'N', '1', 'admin', '2023-12-10 21:06:53', 'admin', '2023-12-10 21:06:53', NULL);
INSERT INTO `sys_dict_data` VALUES (54, 2, '已逾期', '2', 'project_status', NULL, 'danger', 'N', '1', 'admin', '2023-12-10 21:06:53', 'admin', '2023-12-10 21:06:53', NULL);
INSERT INTO `sys_dict_data` VALUES (55, 3, '已结束', '3', 'project_status', '', 'success', 'N', '1', 'admin', '2023-12-10 21:06:53', 'admin', '2023-12-10 21:06:53', NULL);
INSERT INTO `sys_dict_data` VALUES (56, 4, '已暂停', '4', 'project_status', NULL, 'warning', 'N', '1', 'admin', '2023-12-10 21:06:53', 'admin', '2023-12-10 21:06:53', NULL);
INSERT INTO `sys_dict_data` VALUES (59, 2, '未立项', '2', 'approval_status', NULL, 'info', 'N', '1', 'admin', '2023-05-26 15:43:24', 'admin', '2023-12-12 02:22:06', NULL);
INSERT INTO `sys_dict_data` VALUES (60, 0, '已立项', '0', 'approval_status', NULL, 'success', 'N', '1', 'admin', '2023-12-12 02:57:47', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (61, 1, '审批中', '1', 'approval_status', NULL, 'info', 'N', '1', 'admin', '2023-12-12 03:00:55', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (62, 3, '已同意', '3', 'approval_status', NULL, 'success', 'N', '1', 'admin', '2023-12-12 03:01:39', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (63, 4, '已驳回', '4', 'approval_status', NULL, 'danger', 'N', '1', 'admin', '2023-12-12 03:01:57', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (64, 5, '已转回', '5', 'approval_status', NULL, 'warning', 'N', '1', 'admin', '2023-12-12 03:04:58', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (65, 1, '是', '1', 'sys_1_0', '', 'primary', '1', '1', 'admin', '2023-12-09 04:10:48', '', NULL, '系统默认是');
INSERT INTO `sys_dict_data` VALUES (66, 0, '否', '0', 'sys_1_0', '', 'danger', '0', '1', 'admin', '2023-12-09 04:10:48', '', NULL, '系统默认否');
COMMIT;

-- ----------------------------
-- Table structure for sys_dict_type
-- ----------------------------
DROP TABLE IF EXISTS `sys_dict_type`;
CREATE TABLE `sys_dict_type` (
  `dict_id` bigint NOT NULL AUTO_INCREMENT COMMENT '字典主键',
  `dict_name` varchar(100)  DEFAULT '' COMMENT '字典名称',
  `dict_type` varchar(100)  DEFAULT '' COMMENT '字典类型',
  `status` char(1)  DEFAULT '1' COMMENT '状态（1正常 0停用）',
  `create_by` varchar(64)  DEFAULT '' COMMENT '创建者',
  `update_by` varchar(64)  DEFAULT '' COMMENT '更新者',
  `create_time` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `update_time` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  `remark` varchar(500)  DEFAULT NULL COMMENT '备注',
  PRIMARY KEY (`dict_id`) USING BTREE,
  UNIQUE KEY `dict_type` (`dict_type`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=24   COMMENT='字典类型表';

-- ----------------------------
-- Records of sys_dict_type
-- ----------------------------
BEGIN;
INSERT INTO `sys_dict_type` VALUES (1, '用户性别', 'sys_user_sex', '1', 'admin', '2023-11-29 01:33:36', '', NULL, '用户性别列表');
INSERT INTO `sys_dict_type` VALUES (2, '菜单状态', 'sys_show_hide', '1', 'admin', '2023-11-29 01:33:36', '', NULL, '菜单状态列表');
INSERT INTO `sys_dict_type` VALUES (3, '系统开关', 'sys_normal_disable', '1', 'admin', '2023-11-29 01:33:36', '', NULL, '系统开关列表');
INSERT INTO `sys_dict_type` VALUES (4, '任务状态', 'sys_job_status', '1', 'admin', '2023-11-29 01:33:36', '', NULL, '任务状态列表');
INSERT INTO `sys_dict_type` VALUES (5, '任务分组', 'sys_job_group', '1', 'admin', '2023-11-29 01:33:36', '', NULL, '任务分组列表');
INSERT INTO `sys_dict_type` VALUES (6, '系统是否（Y/N）', 'sys_yes_no', '1', 'admin', '2023-11-29 01:33:36', '', NULL, '系统是否列表');
INSERT INTO `sys_dict_type` VALUES (7, '通知类型', 'sys_notice_type', '1', 'admin', '2023-11-29 01:33:36', '', NULL, '通知类型列表');
INSERT INTO `sys_dict_type` VALUES (8, '通知状态', 'sys_notice_status', '1', 'admin', '2023-11-29 01:33:36', '', NULL, '通知状态列表');
INSERT INTO `sys_dict_type` VALUES (9, '操作类型', 'sys_oper_type', '1', 'admin', '2023-11-29 01:33:37', '', NULL, '操作类型列表');
INSERT INTO `sys_dict_type` VALUES (10, '系统状态', 'sys_common_status', '1', 'admin', '2023-11-29 01:33:37', '', NULL, '登录状态列表');
INSERT INTO `sys_dict_type` VALUES (11, '微信应用类型', 'wx_app_type', '1', 'admin', '2023-11-29 02:26:23', '', NULL, '微信应用类型');
INSERT INTO `sys_dict_type` VALUES (12, '单位类型', 'unit_type', '1', 'admin', '2023-12-10 21:08:41', 'admin', '2023-12-10 21:08:41', '单位类型');
INSERT INTO `sys_dict_type` VALUES (13, '客户等级', 'cust_grade', '1', 'admin', '2023-12-10 21:09:07', 'admin', '2023-12-10 21:09:07', '客户等级');
INSERT INTO `sys_dict_type` VALUES (14, '客情方式', 'visit_type', '1', 'admin', '2023-12-10 21:09:26', 'admin', '2023-12-10 21:09:26', '客情方式');
INSERT INTO `sys_dict_type` VALUES (15, '项目状态', 'project_status', '1', 'admin', '2023-12-10 21:06:53', 'admin', '2023-12-10 21:06:53', '项目状态');
INSERT INTO `sys_dict_type` VALUES (16, '状态', 'approval_status', '1', 'admin', '2023-12-10 22:18:01', 'admin', '2023-12-12 02:59:27', '状态');
INSERT INTO `sys_dict_type` VALUES (17, '消息类型', 'msg_type', '1', 'admin', '2023-12-07 20:47:13', '', NULL, '消息类型');
INSERT INTO `sys_dict_type` VALUES (18, '系统是否（Y/N）', 'sys_1_0', '1', 'admin', '2023-11-29 01:33:36', '', NULL, '系统是否列表');
COMMIT;

-- ----------------------------
-- Table structure for sys_job
-- ----------------------------
DROP TABLE IF EXISTS `sys_job`;
CREATE TABLE `sys_job` (
  `job_id` bigint NOT NULL AUTO_INCREMENT COMMENT '任务ID',
  `job_name` varchar(64)  NOT NULL DEFAULT '' COMMENT '任务名称',
  `job_group` varchar(64)  NOT NULL DEFAULT 'DEFAULT' COMMENT '任务组名',
  `invoke_target` varchar(500)  NOT NULL COMMENT '调用目标字符串',
  `cron_expression` varchar(255)  DEFAULT '' COMMENT 'cron执行表达式',
  `misfire_policy` varchar(20)  DEFAULT '3' COMMENT '计划执行错误策略（1立即执行 2执行一次 3放弃执行）',
  `concurrent` char(1)  DEFAULT '0' COMMENT '是否并发执行（1允许 0禁止）',
  `status` char(1)  DEFAULT '1' COMMENT '状态（1正常 0暂停）',
  `create_by` varchar(64)  DEFAULT '' COMMENT '创建者',
  `update_by` varchar(64)  DEFAULT '' COMMENT '更新者',
  `create_time` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `update_time` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  `remark` varchar(500)  DEFAULT '' COMMENT '备注信息',
  PRIMARY KEY (`job_id`,`job_name`,`job_group`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=100   COMMENT='定时任务调度表';

-- ----------------------------
-- Records of sys_job
-- ----------------------------
BEGIN;
INSERT INTO `sys_job` VALUES (1, '系统默认（无参）', 'DEFAULT', 'cnlarryTask.testNoParams', '0/10 * * * * ?', '3', '0', '0', 'admin', '2023-11-29 01:33:38', '', '2023-11-29 02:41:44', '');
INSERT INTO `sys_job` VALUES (2, '系统默认（有参）', 'DEFAULT', 'cnlarryTask.testParams(\'ry\')', '0/15 * * * * ?', '3', '0', '0', 'admin', '2023-11-29 01:33:38', '', '2023-11-29 02:41:46', '');
INSERT INTO `sys_job` VALUES (3, '系统默认（多参）', 'DEFAULT', 'cnlarryTask.testMultipleParams(\'ry\', true, 2000L, 316.50D, 100)', '0/20 * * * * ?', '3', '0', '0', 'admin', '2023-11-29 01:33:38', '', '2023-11-29 02:41:48', '');
COMMIT;

-- ----------------------------
-- Table structure for sys_job_log
-- ----------------------------
DROP TABLE IF EXISTS `sys_job_log`;
CREATE TABLE `sys_job_log` (
  `job_log_id` bigint NOT NULL AUTO_INCREMENT COMMENT '任务日志ID',
  `job_name` varchar(64)  NOT NULL COMMENT '任务名称',
  `job_group` varchar(64)  NOT NULL COMMENT '任务组名',
  `invoke_target` varchar(500)  NOT NULL COMMENT '调用目标字符串',
  `job_message` varchar(500)  DEFAULT NULL COMMENT '日志信息',
  `status` char(1)  DEFAULT '1' COMMENT '执行状态（1正常 0失败）',
  `exception_info` varchar(2000)  DEFAULT '' COMMENT '异常信息',
  `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  PRIMARY KEY (`job_log_id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1   COMMENT='定时任务调度日志表';

-- ----------------------------
-- Records of sys_job_log
-- ----------------------------
BEGIN;
COMMIT;

-- ----------------------------
-- Table structure for sys_logininfor
-- ----------------------------
DROP TABLE IF EXISTS `sys_logininfor`;
CREATE TABLE `sys_logininfor` (
  `info_id` bigint NOT NULL AUTO_INCREMENT COMMENT '访问ID',
  `user_name` varchar(50)  DEFAULT '' COMMENT '用户账号',
  `ipaddr` varchar(128)  DEFAULT '' COMMENT '登录IP地址',
  `login_location` varchar(255)  DEFAULT '' COMMENT '登录地点',
  `browser` varchar(50)  DEFAULT '' COMMENT '浏览器类型',
  `os` varchar(50)  DEFAULT '' COMMENT '操作系统',
  `status` char(1)  DEFAULT '1' COMMENT '登录状态（1成功 1失败）',
  `msg` varchar(255)  DEFAULT '' COMMENT '提示消息',
  `login_time` datetime DEFAULT NULL COMMENT '访问时间',
  PRIMARY KEY (`info_id`) USING BTREE,
  KEY `idx_sys_logininfor_s` (`status`) USING BTREE,
  KEY `idx_sys_logininfor_lt` (`login_time`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1   COMMENT='系统访问记录';


-- ----------------------------
-- Table structure for sys_menu
-- ----------------------------
DROP TABLE IF EXISTS `sys_menu`;
CREATE TABLE `sys_menu` (
  `menu_id` bigint NOT NULL AUTO_INCREMENT COMMENT '菜单ID',
  `menu_name` varchar(50)  NOT NULL COMMENT '菜单名称',
  `parent_id` bigint DEFAULT '0' COMMENT '父菜单ID',
  `order_num` int DEFAULT '0' COMMENT '显示顺序',
  `path` varchar(200)  DEFAULT '' COMMENT '路由地址',
  `component` varchar(255)  DEFAULT NULL COMMENT '组件路径',
  `query` varchar(255)  DEFAULT NULL COMMENT '路由参数',
  `is_frame` int DEFAULT '0' COMMENT '是否为外链（1是 0否）',
  `is_cache` int DEFAULT '1' COMMENT '是否缓存（1缓存 0不缓存）',
  `menu_type` char(1)  DEFAULT '' COMMENT '菜单类型（M目录 C菜单 F按钮）',
  `visible` char(1)  DEFAULT '1' COMMENT '菜单状态（1显示 0隐藏）',
  `status` char(1)  DEFAULT '1' COMMENT '菜单状态（1正常 0停用）',
  `perms` varchar(100)  DEFAULT NULL COMMENT '权限标识',
  `icon` varchar(100)  DEFAULT '#' COMMENT '菜单图标',
  `create_by` varchar(64)  DEFAULT '' COMMENT '创建者',
  `update_by` varchar(64)  DEFAULT '' COMMENT '更新者',
  `create_time` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `update_time` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  `remark` varchar(500)  DEFAULT '' COMMENT '备注',
  PRIMARY KEY (`menu_id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=10000   COMMENT='菜单权限表';

-- ----------------------------
-- Records of sys_menu
-- ----------------------------
BEGIN;
INSERT INTO `sys_menu` VALUES (1, '系统管理', 0, 1, 'system', NULL, '', 0, 1, 'M', '1', '1', '', 'system', 'admin', '2023-11-29 01:33:33', '', NULL, '系统管理目录');
INSERT INTO `sys_menu` VALUES (2, '系统监控', 0, 2, 'monitor', NULL, '', 0, 1, 'M', '1', '1', '', 'monitor', 'admin', '2023-11-29 01:33:33', '', NULL, '系统监控目录');
INSERT INTO `sys_menu` VALUES (3, '系统工具', 0, 3, 'tool', NULL, '', 0, 1, 'M', '1', '1', '', 'tool', 'admin', '2023-11-29 01:33:33', '', NULL, '系统工具目录');
INSERT INTO `sys_menu` VALUES (4, 'cn-larry官网', 0, 4, 'http://www.cnlarry.com', NULL, '', 1, 1, 'M', '1', '1', '', 'guide', 'admin', '2023-11-29 01:33:33', '', NULL, 'cn-larry官网地址');
INSERT INTO `sys_menu` VALUES (100, '用户管理', 1, 1, 'user', 'system/user/index', '', 0, 1, 'C', '1', '1', 'system:user:list', 'user', 'admin', '2023-11-29 01:33:33', '', NULL, '用户管理菜单');
INSERT INTO `sys_menu` VALUES (101, '角色管理', 1, 2, 'role', 'system/role/index', '', 0, 1, 'C', '1', '1', 'system:role:list', 'peoples', 'admin', '2023-11-29 01:33:33', '', NULL, '角色管理菜单');
INSERT INTO `sys_menu` VALUES (102, '菜单管理', 1, 3, 'menu', 'system/menu/index', '', 0, 1, 'C', '1', '1', 'system:menu:list', 'tree-table', 'admin', '2023-11-29 01:33:33', '', NULL, '菜单管理菜单');
INSERT INTO `sys_menu` VALUES (103, '部门管理', 1, 4, 'dept', 'system/dept/index', '', 0, 1, 'C', '1', '1', 'system:dept:list', 'tree', 'admin', '2023-11-29 01:33:33', '', NULL, '部门管理菜单');
INSERT INTO `sys_menu` VALUES (104, '岗位管理', 1, 5, 'post', 'system/post/index', '', 0, 1, 'C', '1', '1', 'system:post:list', 'post', 'admin', '2023-11-29 01:33:33', '', NULL, '岗位管理菜单');
INSERT INTO `sys_menu` VALUES (105, '字典管理', 1, 6, 'dict', 'system/dict/index', '', 0, 1, 'C', '1', '1', 'system:dict:list', 'dict', 'admin', '2023-11-29 01:33:33', '', NULL, '字典管理菜单');
INSERT INTO `sys_menu` VALUES (106, '参数设置', 1, 7, 'config', 'system/config/index', '', 0, 1, 'C', '1', '1', 'system:config:list', 'edit', 'admin', '2023-11-29 01:33:33', '', NULL, '参数设置菜单');
INSERT INTO `sys_menu` VALUES (107, '通知公告', 1, 8, 'notice', 'system/notice/index', '', 0, 1, 'C', '1', '1', 'system:notice:list', 'message', 'admin', '2023-11-29 01:33:33', '', NULL, '通知公告菜单');
INSERT INTO `sys_menu` VALUES (108, '日志管理', 1, 9, 'log', '', '', 0, 1, 'M', '1', '1', '', 'log', 'admin', '2023-11-29 01:33:33', '', NULL, '日志管理菜单');
INSERT INTO `sys_menu` VALUES (109, '在线用户', 2, 1, 'online', 'monitor/online/index', '', 0, 1, 'C', '1', '1', 'monitor:online:list', 'online', 'admin', '2023-11-29 01:33:33', '', NULL, '在线用户菜单');
INSERT INTO `sys_menu` VALUES (110, '定时任务', 2, 2, 'job', 'monitor/job/index', '', 0, 1, 'C', '1', '1', 'monitor:job:list', 'job', 'admin', '2023-11-29 01:33:33', '', NULL, '定时任务菜单');
INSERT INTO `sys_menu` VALUES (111, '数据监控', 2, 3, 'druid', 'monitor/druid/index', '', 0, 1, 'C', '1', '1', 'monitor:druid:list', 'druid', 'admin', '2023-11-29 01:33:33', '', NULL, '数据监控菜单');
INSERT INTO `sys_menu` VALUES (112, '服务监控', 2, 4, 'server', 'monitor/server/index', '', 0, 1, 'C', '1', '1', 'monitor:server:list', 'server', 'admin', '2023-11-29 01:33:33', '', NULL, '服务监控菜单');
INSERT INTO `sys_menu` VALUES (113, '缓存监控', 2, 5, 'cache', 'monitor/cache/index', '', 0, 1, 'C', '1', '1', 'monitor:cache:list', 'redis', 'admin', '2023-11-29 01:33:33', '', NULL, '缓存监控菜单');
INSERT INTO `sys_menu` VALUES (114, '缓存列表', 2, 6, 'cacheList', 'monitor/cache/list', '', 0, 1, 'C', '1', '1', 'monitor:cache:list', 'redis-list', 'admin', '2023-11-29 01:33:33', '', NULL, '缓存列表菜单');
INSERT INTO `sys_menu` VALUES (115, '表单构建', 3, 1, 'build', 'tool/build/index', '', 0, 1, 'C', '1', '1', 'tool:build:list', 'build', 'admin', '2023-11-29 01:33:33', '', NULL, '表单构建菜单');
INSERT INTO `sys_menu` VALUES (116, '代码生成', 3, 2, 'gen', 'tool/gen/index', '', 0, 1, 'C', '1', '1', 'tool:gen:list', 'code', 'admin', '2023-11-29 01:33:33', '', NULL, '代码生成菜单');
INSERT INTO `sys_menu` VALUES (117, '系统接口', 3, 3, 'swagger', 'tool/swagger/index', '', 0, 1, 'C', '1', '1', 'tool:swagger:list', 'swagger', 'admin', '2023-11-29 01:33:33', '', NULL, '系统接口菜单');
INSERT INTO `sys_menu` VALUES (500, '操作日志', 108, 1, 'operlog', 'monitor/operlog/index', '', 0, 1, 'C', '1', '1', 'monitor:operlog:list', 'form', 'admin', '2023-11-29 01:33:33', '', NULL, '操作日志菜单');
INSERT INTO `sys_menu` VALUES (501, '登录日志', 108, 2, 'logininfor', 'monitor/logininfor/index', '', 0, 1, 'C', '1', '1', 'monitor:logininfor:list', 'logininfor', 'admin', '2023-11-29 01:33:33', '', NULL, '登录日志菜单');
INSERT INTO `sys_menu` VALUES (1000, '用户查询', 100, 1, '', '', '', 0, 1, 'F', '1', '1', 'system:user:query', '#', 'admin', '2023-11-29 01:33:33', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1001, '用户新增', 100, 2, '', '', '', 0, 1, 'F', '1', '1', 'system:user:add', '#', 'admin', '2023-11-29 01:33:33', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1002, '用户修改', 100, 3, '', '', '', 0, 1, 'F', '1', '1', 'system:user:edit', '#', 'admin', '2023-11-29 01:33:33', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1003, '用户删除', 100, 4, '', '', '', 0, 1, 'F', '1', '1', 'system:user:remove', '#', 'admin', '2023-11-29 01:33:33', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1004, '用户导出', 100, 5, '', '', '', 0, 1, 'F', '1', '1', 'system:user:export', '#', 'admin', '2023-11-29 01:33:33', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1005, '用户导入', 100, 6, '', '', '', 0, 1, 'F', '1', '1', 'system:user:import', '#', 'admin', '2023-11-29 01:33:33', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1006, '重置密码', 100, 7, '', '', '', 0, 1, 'F', '1', '1', 'system:user:resetPwd', '#', 'admin', '2023-11-29 01:33:34', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1007, '角色查询', 101, 1, '', '', '', 0, 1, 'F', '1', '1', 'system:role:query', '#', 'admin', '2023-11-29 01:33:34', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1008, '角色新增', 101, 2, '', '', '', 0, 1, 'F', '1', '1', 'system:role:add', '#', 'admin', '2023-11-29 01:33:34', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1009, '角色修改', 101, 3, '', '', '', 0, 1, 'F', '1', '1', 'system:role:edit', '#', 'admin', '2023-11-29 01:33:34', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1010, '角色删除', 101, 4, '', '', '', 0, 1, 'F', '1', '1', 'system:role:remove', '#', 'admin', '2023-11-29 01:33:34', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1011, '角色导出', 101, 5, '', '', '', 0, 1, 'F', '1', '1', 'system:role:export', '#', 'admin', '2023-11-29 01:33:34', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1012, '菜单查询', 102, 1, '', '', '', 0, 1, 'F', '1', '1', 'system:menu:query', '#', 'admin', '2023-11-29 01:33:34', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1013, '菜单新增', 102, 2, '', '', '', 0, 1, 'F', '1', '1', 'system:menu:add', '#', 'admin', '2023-11-29 01:33:34', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1014, '菜单修改', 102, 3, '', '', '', 0, 1, 'F', '1', '1', 'system:menu:edit', '#', 'admin', '2023-11-29 01:33:34', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1015, '菜单删除', 102, 4, '', '', '', 0, 1, 'F', '1', '1', 'system:menu:remove', '#', 'admin', '2023-11-29 01:33:34', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1016, '部门查询', 103, 1, '', '', '', 0, 1, 'F', '1', '1', 'system:dept:query', '#', 'admin', '2023-11-29 01:33:34', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1017, '部门新增', 103, 2, '', '', '', 0, 1, 'F', '1', '1', 'system:dept:add', '#', 'admin', '2023-11-29 01:33:34', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1018, '部门修改', 103, 3, '', '', '', 0, 1, 'F', '1', '1', 'system:dept:edit', '#', 'admin', '2023-11-29 01:33:34', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1019, '部门删除', 103, 4, '', '', '', 0, 1, 'F', '1', '1', 'system:dept:remove', '#', 'admin', '2023-11-29 01:33:34', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1020, '岗位查询', 104, 1, '', '', '', 0, 1, 'F', '1', '1', 'system:post:query', '#', 'admin', '2023-11-29 01:33:34', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1021, '岗位新增', 104, 2, '', '', '', 0, 1, 'F', '1', '1', 'system:post:add', '#', 'admin', '2023-11-29 01:33:34', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1022, '岗位修改', 104, 3, '', '', '', 0, 1, 'F', '1', '1', 'system:post:edit', '#', 'admin', '2023-11-29 01:33:34', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1023, '岗位删除', 104, 4, '', '', '', 0, 1, 'F', '1', '1', 'system:post:remove', '#', 'admin', '2023-11-29 01:33:34', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1024, '岗位导出', 104, 5, '', '', '', 0, 1, 'F', '1', '1', 'system:post:export', '#', 'admin', '2023-11-29 01:33:34', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1025, '字典查询', 105, 1, '#', '', '', 0, 1, 'F', '1', '1', 'system:dict:query', '#', 'admin', '2023-11-29 01:33:34', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1026, '字典新增', 105, 2, '#', '', '', 0, 1, 'F', '1', '1', 'system:dict:add', '#', 'admin', '2023-11-29 01:33:34', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1027, '字典修改', 105, 3, '#', '', '', 0, 1, 'F', '1', '1', 'system:dict:edit', '#', 'admin', '2023-11-29 01:33:34', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1028, '字典删除', 105, 4, '#', '', '', 0, 1, 'F', '1', '1', 'system:dict:remove', '#', 'admin', '2023-11-29 01:33:34', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1029, '字典导出', 105, 5, '#', '', '', 0, 1, 'F', '1', '1', 'system:dict:export', '#', 'admin', '2023-11-29 01:33:34', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1030, '参数查询', 106, 1, '#', '', '', 0, 1, 'F', '1', '1', 'system:config:query', '#', 'admin', '2023-11-29 01:33:34', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1031, '参数新增', 106, 2, '#', '', '', 0, 1, 'F', '1', '1', 'system:config:add', '#', 'admin', '2023-11-29 01:33:34', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1032, '参数修改', 106, 3, '#', '', '', 0, 1, 'F', '1', '1', 'system:config:edit', '#', 'admin', '2023-11-29 01:33:34', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1033, '参数删除', 106, 4, '#', '', '', 0, 1, 'F', '1', '1', 'system:config:remove', '#', 'admin', '2023-11-29 01:33:34', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1034, '参数导出', 106, 5, '#', '', '', 0, 1, 'F', '1', '1', 'system:config:export', '#', 'admin', '2023-11-29 01:33:34', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1035, '公告查询', 107, 1, '#', '', '', 0, 1, 'F', '1', '1', 'system:notice:query', '#', 'admin', '2023-11-29 01:33:34', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1036, '公告新增', 107, 2, '#', '', '', 0, 1, 'F', '1', '1', 'system:notice:add', '#', 'admin', '2023-11-29 01:33:34', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1037, '公告修改', 107, 3, '#', '', '', 0, 1, 'F', '1', '1', 'system:notice:edit', '#', 'admin', '2023-11-29 01:33:34', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1038, '公告删除', 107, 4, '#', '', '', 0, 1, 'F', '1', '1', 'system:notice:remove', '#', 'admin', '2023-11-29 01:33:34', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1039, '操作查询', 500, 1, '#', '', '', 0, 1, 'F', '1', '1', 'monitor:operlog:query', '#', 'admin', '2023-11-29 01:33:34', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1040, '操作删除', 500, 2, '#', '', '', 0, 1, 'F', '1', '1', 'monitor:operlog:remove', '#', 'admin', '2023-11-29 01:33:34', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1041, '日志导出', 500, 3, '#', '', '', 0, 1, 'F', '1', '1', 'monitor:operlog:export', '#', 'admin', '2023-11-29 01:33:34', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1042, '登录查询', 501, 1, '#', '', '', 0, 1, 'F', '1', '1', 'monitor:logininfor:query', '#', 'admin', '2023-11-29 01:33:34', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1043, '登录删除', 501, 2, '#', '', '', 0, 1, 'F', '1', '1', 'monitor:logininfor:remove', '#', 'admin', '2023-11-29 01:33:34', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1044, '日志导出', 501, 3, '#', '', '', 0, 1, 'F', '1', '1', 'monitor:logininfor:export', '#', 'admin', '2023-11-29 01:33:34', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1045, '账户解锁', 501, 4, '#', '', '', 0, 1, 'F', '1', '1', 'monitor:logininfor:unlock', '#', 'admin', '2023-11-29 01:33:34', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1046, '在线查询', 109, 1, '#', '', '', 0, 1, 'F', '1', '1', 'monitor:online:query', '#', 'admin', '2023-11-29 01:33:34', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1047, '批量强退', 109, 2, '#', '', '', 0, 1, 'F', '1', '1', 'monitor:online:batchLogout', '#', 'admin', '2023-11-29 01:33:34', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1048, '单条强退', 109, 3, '#', '', '', 0, 1, 'F', '1', '1', 'monitor:online:forceLogout', '#', 'admin', '2023-11-29 01:33:34', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1049, '任务查询', 110, 1, '#', '', '', 0, 1, 'F', '1', '1', 'monitor:job:query', '#', 'admin', '2023-11-29 01:33:34', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1050, '任务新增', 110, 2, '#', '', '', 0, 1, 'F', '1', '1', 'monitor:job:add', '#', 'admin', '2023-11-29 01:33:34', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1051, '任务修改', 110, 3, '#', '', '', 0, 1, 'F', '1', '1', 'monitor:job:edit', '#', 'admin', '2023-11-29 01:33:34', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1052, '任务删除', 110, 4, '#', '', '', 0, 1, 'F', '1', '1', 'monitor:job:remove', '#', 'admin', '2023-11-29 01:33:34', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1053, '状态修改', 110, 5, '#', '', '', 0, 1, 'F', '1', '1', 'monitor:job:changeStatus', '#', 'admin', '2023-11-29 01:33:34', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1054, '任务导出', 110, 6, '#', '', '', 0, 1, 'F', '1', '1', 'monitor:job:export', '#', 'admin', '2023-11-29 01:33:34', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1055, '生成查询', 116, 1, '#', '', '', 0, 1, 'F', '1', '1', 'tool:gen:query', '#', 'admin', '2023-11-29 01:33:34', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1056, '生成修改', 116, 2, '#', '', '', 0, 1, 'F', '1', '1', 'tool:gen:edit', '#', 'admin', '2023-11-29 01:33:34', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1057, '生成删除', 116, 3, '#', '', '', 0, 1, 'F', '1', '1', 'tool:gen:remove', '#', 'admin', '2023-11-29 01:33:34', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1058, '导入代码', 116, 4, '#', '', '', 0, 1, 'F', '1', '1', 'tool:gen:import', '#', 'admin', '2023-11-29 01:33:34', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1059, '预览代码', 116, 5, '#', '', '', 0, 1, 'F', '1', '1', 'tool:gen:preview', '#', 'admin', '2023-11-29 01:33:34', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1060, '生成代码', 116, 6, '#', '', '', 0, 1, 'F', '1', '1', 'tool:gen:code', '#', 'admin', '2023-11-29 01:33:34', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2000, '微信应用管理', 1, 10, 'wxappConfig', 'system/wxappConfig/index', NULL, 0, 1, 'C', '1', '1', 'system:wxappConfig:list', 'wechat', 'admin', '2023-11-29 02:31:24', 'admin', '2023-11-29 02:32:28', '微信应用管理菜单');
INSERT INTO `sys_menu` VALUES (2001, '微信应用管理查询', 2000, 1, '#', '', NULL, 0, 1, 'F', '1', '1', 'system:wxappConfig:query', '#', 'admin', '2023-11-29 02:31:24', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2002, '微信应用管理新增', 2000, 2, '#', '', NULL, 0, 1, 'F', '1', '1', 'system:wxappConfig:add', '#', 'admin', '2023-11-29 02:31:24', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2003, '微信应用管理修改', 2000, 3, '#', '', NULL, 0, 1, 'F', '1', '1', 'system:wxappConfig:edit', '#', 'admin', '2023-11-29 02:31:24', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2004, '微信应用管理删除', 2000, 4, '#', '', NULL, 0, 1, 'F', '1', '1', 'system:wxappConfig:remove', '#', 'admin', '2023-11-29 02:31:24', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2005, '微信应用管理导出', 2000, 5, '#', '', NULL, 0, 1, 'F', '1', '1', 'system:wxappConfig:export', '#', 'admin', '2023-11-29 02:31:24', '', NULL, '');
COMMIT;

-- ----------------------------
-- Table structure for sys_msg_template_config
-- ----------------------------
DROP TABLE IF EXISTS `sys_msg_template_config`;
CREATE TABLE `sys_msg_template_config` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `msg_type` varchar(10)  NOT NULL COMMENT '消息类型',
  `msg_state` char(1)  DEFAULT '1' COMMENT '状态（1可用 0停用）',
  `template_name` varchar(100)  DEFAULT NULL COMMENT '模版名称',
  `template_id` varchar(100)  DEFAULT NULL COMMENT '模版编号',
  `template_value` varchar(255)  DEFAULT NULL COMMENT '模版值',
  `remark` varchar(255)  DEFAULT NULL COMMENT '备注',
  `create_by` varchar(30)  DEFAULT NULL COMMENT '创建人',
  `update_by` varchar(30)  DEFAULT NULL COMMENT '修改人',
  `create_time` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `update_time` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  PRIMARY KEY (`id`) USING BTREE,
  UNIQUE KEY `sysmsgtemplateconfig_id2` (`msg_type`,`template_id`) USING BTREE,
  KEY `sysmsgtemplateconfig_id1` (`msg_state`,`msg_type`) USING BTREE
) ENGINE=InnoDB   COMMENT='系统消息通知配置表';

-- ----------------------------
-- Records of sys_msg_template_config
-- ----------------------------
BEGIN;
COMMIT;

-- ----------------------------
-- Table structure for sys_notice
-- ----------------------------
DROP TABLE IF EXISTS `sys_notice`;
CREATE TABLE `sys_notice` (
  `notice_id` int NOT NULL AUTO_INCREMENT COMMENT '公告ID',
  `notice_title` varchar(50)  NOT NULL COMMENT '公告标题',
  `notice_type` char(1)  NOT NULL COMMENT '公告类型（1通知 2公告）',
  `notice_content` longblob COMMENT '公告内容',
  `status` char(1)  DEFAULT '1' COMMENT '公告状态（1正常 0关闭）',
  `create_by` varchar(64)  DEFAULT '' COMMENT '创建者',
  `update_by` varchar(64)  DEFAULT '' COMMENT '更新者',
  `create_time` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `update_time` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  `remark` varchar(255)  DEFAULT NULL COMMENT '备注',
  PRIMARY KEY (`notice_id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=10   COMMENT='通知公告表';

-- ----------------------------
-- Records of sys_notice
-- ----------------------------
BEGIN;
INSERT INTO `sys_notice` VALUES (1, '温馨提醒：2018-07-01 cn-larry新版本发布啦', '2', 0xE696B0E78988E69CACE58685E5AEB9, '1', 'admin', '2023-12-12 20:11:57', '', NULL, '管理员');
INSERT INTO `sys_notice` VALUES (2, '维护通知：2018-07-01 cn-larry系统凌晨维护', '1', 0xE7BBB4E68AA4E58685E5AEB9, '1', 'admin', '2023-12-12 20:11:57', '', NULL, '管理员');
COMMIT;

-- ----------------------------
-- Table structure for sys_oper_log
-- ----------------------------
DROP TABLE IF EXISTS `sys_oper_log`;
CREATE TABLE `sys_oper_log` (
  `oper_id` bigint NOT NULL AUTO_INCREMENT COMMENT '日志主键',
  `title` varchar(50)  DEFAULT '' COMMENT '模块标题',
  `business_type` int DEFAULT '0' COMMENT '业务类型（0其它 1新增 2修改 3删除）',
  `method` varchar(100)  DEFAULT '' COMMENT '方法名称',
  `request_method` varchar(10)  DEFAULT '' COMMENT '请求方式',
  `operator_type` int DEFAULT '0' COMMENT '操作类别（0其它 1后台用户 2手机端用户）',
  `oper_name` varchar(50)  DEFAULT '' COMMENT '操作人员',
  `dept_name` varchar(50)  DEFAULT '' COMMENT '部门名称',
  `oper_url` varchar(255)  DEFAULT '' COMMENT '请求URL',
  `oper_ip` varchar(128)  DEFAULT '' COMMENT '主机地址',
  `oper_location` varchar(255)  DEFAULT '' COMMENT '操作地点',
  `oper_param` varchar(2000)  DEFAULT '' COMMENT '请求参数',
  `json_result` varchar(2000)  DEFAULT '' COMMENT '返回参数',
  `status` int DEFAULT '1' COMMENT '操作状态（1正常 0异常）',
  `error_msg` varchar(2000)  DEFAULT '' COMMENT '错误消息',
  `oper_time` datetime DEFAULT NULL COMMENT '操作时间',
  `cost_time` bigint DEFAULT '0' COMMENT '消耗时间',
  PRIMARY KEY (`oper_id`) USING BTREE,
  KEY `idx_sys_oper_log_bt` (`business_type`) USING BTREE,
  KEY `idx_sys_oper_log_s` (`status`) USING BTREE,
  KEY `idx_sys_oper_log_ot` (`oper_time`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1   COMMENT='操作日志记录';

-- ----------------------------
-- Table structure for sys_post
-- ----------------------------
DROP TABLE IF EXISTS `sys_post`;
CREATE TABLE `sys_post` (
  `post_id` bigint NOT NULL AUTO_INCREMENT COMMENT '岗位ID',
  `post_code` varchar(64)  NOT NULL COMMENT '岗位编码',
  `post_name` varchar(50)  NOT NULL COMMENT '岗位名称',
  `post_sort` int NOT NULL COMMENT '显示顺序',
  `status` char(1)  NOT NULL COMMENT '状态（1正常 0停用）',
  `create_by` varchar(64)  DEFAULT '' COMMENT '创建者',
  `update_by` varchar(64)  DEFAULT '' COMMENT '更新者',
  `create_time` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `update_time` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  `remark` varchar(500)  DEFAULT NULL COMMENT '备注',
  PRIMARY KEY (`post_id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=5   COMMENT='岗位信息表';

-- ----------------------------
-- Records of sys_post
-- ----------------------------
BEGIN;
INSERT INTO `sys_post` VALUES (1, 'ceo', '董事长', 1, '1', 'admin', '2023-12-12 20:11:58', '', NULL, '');
INSERT INTO `sys_post` VALUES (2, 'se', '项目经理', 2, '1', 'admin', '2023-12-12 20:11:58', '', NULL, '');
INSERT INTO `sys_post` VALUES (3, 'hr', '人力资源', 3, '1', 'admin', '2023-12-12 20:11:58', '', NULL, '');
INSERT INTO `sys_post` VALUES (4, 'user', '普通员工', 4, '1', 'admin', '2023-12-12 20:11:58', '', NULL, '');
COMMIT;

-- ----------------------------
-- Table structure for sys_prompt_config
-- ----------------------------
DROP TABLE IF EXISTS `sys_prompt_config`;
CREATE TABLE `sys_prompt_config` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `user_id` bigint NOT NULL COMMENT '用户ID(提示对象)',
  `prompt_key` varchar(50)  NOT NULL COMMENT '提示key',
  `prompt_remark` varchar(255)  DEFAULT NULL COMMENT '提示说明',
  `prompt_status` char(1)  NOT NULL DEFAULT '0' COMMENT '提示状态（1可提示 0禁用）',
  `create_by` varchar(30)  DEFAULT NULL COMMENT '创建人',
  `update_by` varchar(30)  DEFAULT NULL COMMENT '修改人',
  `create_time` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `update_time` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  PRIMARY KEY (`id`) USING BTREE,
  UNIQUE KEY `syspromptconfig_id1` (`user_id`,`prompt_key`) USING BTREE,
  KEY `syspromptconfig_id2` (`prompt_status`) USING BTREE
) ENGINE=InnoDB   COMMENT='系统提示配置';

-- ----------------------------
-- Records of sys_prompt_config
-- ----------------------------
BEGIN;
COMMIT;

-- ----------------------------
-- Table structure for sys_role
-- ----------------------------
DROP TABLE IF EXISTS `sys_role`;
CREATE TABLE `sys_role` (
  `role_id` bigint NOT NULL AUTO_INCREMENT COMMENT '角色ID',
  `role_name` varchar(30)  NOT NULL COMMENT '角色名称',
  `role_key` varchar(100)  NOT NULL COMMENT '角色权限字符串',
  `role_sort` int NOT NULL COMMENT '显示顺序',
  `data_scope` char(1)  DEFAULT '1' COMMENT '数据范围（1：全部数据权限 2：自定数据权限 3：本部门数据权限 4：本部门及以下数据权限）',
  `menu_check_strictly` tinyint(1) DEFAULT '1' COMMENT '菜单树选择项是否关联显示',
  `dept_check_strictly` tinyint(1) DEFAULT '1' COMMENT '部门树选择项是否关联显示',
  `status` char(1)  DEFAULT '1' COMMENT '角色状态（1正常 0停用）',
  `del_flag` char(1)  DEFAULT '0' COMMENT '删除标志（0代表存在 1代表删除）',
  `create_by` varchar(64)  DEFAULT '' COMMENT '创建者',
  `update_by` varchar(64)  DEFAULT '' COMMENT '更新者',
  `create_time` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `update_time` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  `remark` varchar(500)  DEFAULT NULL COMMENT '备注',
  PRIMARY KEY (`role_id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=100   COMMENT='角色信息表';

-- ----------------------------
-- Records of sys_role
-- ----------------------------
BEGIN;
INSERT INTO `sys_role` VALUES (1, '超级管理员', 'admin', 1, '1', 1, 1, '1', '0', 'admin', '2023-12-12 20:11:58', '', NULL, '超级管理员');
INSERT INTO `sys_role` VALUES (2, '普通角色', 'common', 2, '2', 1, 1, '1', '0', 'admin', '2023-12-12 20:11:58', '', NULL, '普通角色');
COMMIT;

-- ----------------------------
-- Table structure for sys_role_dept
-- ----------------------------
DROP TABLE IF EXISTS `sys_role_dept`;
CREATE TABLE `sys_role_dept` (
  `role_id` bigint NOT NULL COMMENT '角色ID',
  `dept_id` bigint NOT NULL COMMENT '部门ID',
  PRIMARY KEY (`role_id`,`dept_id`) USING BTREE
) ENGINE=InnoDB   COMMENT='角色和部门关联表';

-- ----------------------------
-- Records of sys_role_dept
-- ----------------------------
BEGIN;
INSERT INTO `sys_role_dept` VALUES (2, 100);
INSERT INTO `sys_role_dept` VALUES (2, 101);
INSERT INTO `sys_role_dept` VALUES (2, 105);
COMMIT;

-- ----------------------------
-- Table structure for sys_role_menu
-- ----------------------------
DROP TABLE IF EXISTS `sys_role_menu`;
CREATE TABLE `sys_role_menu` (
  `role_id` bigint NOT NULL COMMENT '角色ID',
  `menu_id` bigint NOT NULL COMMENT '菜单ID',
  PRIMARY KEY (`role_id`,`menu_id`) USING BTREE
) ENGINE=InnoDB   COMMENT='角色和菜单关联表';

-- ----------------------------
-- Records of sys_role_menu
-- ----------------------------
BEGIN;
COMMIT;

-- ----------------------------
-- Table structure for sys_user
-- ----------------------------
DROP TABLE IF EXISTS `sys_user`;
CREATE TABLE `sys_user` (
  `user_id` bigint NOT NULL AUTO_INCREMENT COMMENT '用户ID',
  `dept_id` bigint DEFAULT NULL COMMENT '部门ID',
  `user_name` varchar(30)  NOT NULL COMMENT '用户账号',
  `nick_name` varchar(30)  NOT NULL COMMENT '用户昵称',
  `qywx_id` varchar(50)  DEFAULT NULL COMMENT '企业微信用户ID',
  `user_type` varchar(2)  DEFAULT '00' COMMENT '用户类型（00系统用户）',
  `email` varchar(50)  DEFAULT '' COMMENT '用户邮箱',
  `phonenumber` varchar(11)  DEFAULT '' COMMENT '手机号码',
  `sex` char(1)  DEFAULT '1' COMMENT '用户性别（1男 0女 2未知）',
  `avatar` varchar(100)  DEFAULT '' COMMENT '头像地址',
  `password` varchar(100)  DEFAULT '' COMMENT '密码',
  `status` char(1)  DEFAULT '1' COMMENT '帐号状态（1正常 0停用）',
  `del_flag` char(1)  DEFAULT '0' COMMENT '删除标志（0代表存在 1代表删除）',
  `login_ip` varchar(128)  DEFAULT '' COMMENT '最后登录IP',
  `login_date` datetime DEFAULT NULL COMMENT '最后登录时间',
  `create_by` varchar(64)  DEFAULT '' COMMENT '创建者',
  `update_by` varchar(64)  DEFAULT '' COMMENT '更新者',
  `create_time` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `update_time` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  `remark` varchar(500)  DEFAULT NULL COMMENT '备注',
  PRIMARY KEY (`user_id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=101   COMMENT='用户信息表';

-- ----------------------------
-- Records of sys_user
-- ----------------------------
BEGIN;
INSERT INTO `sys_user` VALUES (1, 103, 'admin', 'cn-larry', NULL, '00', 'cnlarry@163.com', '15888888888', '1', '/profile/avatar/2023/11/29/blob_20231129160634A001.png', '$2a$10$YFUfRLpyxaeojxaxbBWTIuYGwUVSVw4k8hBBEcxdi2E3aT5WLtAVW', '1', '0', '127.0.0.1', '2024-09-25 15:35:58', 'admin', '2023-12-12 20:11:58', '', '2024-09-25 15:35:57', '管理员');
COMMIT;

-- ----------------------------
-- Table structure for sys_user_post
-- ----------------------------
DROP TABLE IF EXISTS `sys_user_post`;
CREATE TABLE `sys_user_post` (
  `user_id` bigint NOT NULL COMMENT '用户ID',
  `post_id` bigint NOT NULL COMMENT '岗位ID',
  PRIMARY KEY (`user_id`,`post_id`) USING BTREE
) ENGINE=InnoDB   COMMENT='用户与岗位关联表';

-- ----------------------------
-- Records of sys_user_post
-- ----------------------------
BEGIN;
INSERT INTO `sys_user_post` VALUES (1, 1);
INSERT INTO `sys_user_post` VALUES (2, 2);
COMMIT;

-- ----------------------------
-- Table structure for sys_user_role
-- ----------------------------
DROP TABLE IF EXISTS `sys_user_role`;
CREATE TABLE `sys_user_role` (
  `user_id` bigint NOT NULL COMMENT '用户ID',
  `role_id` bigint NOT NULL COMMENT '角色ID',
  PRIMARY KEY (`user_id`,`role_id`) USING BTREE
) ENGINE=InnoDB   COMMENT='用户和角色关联表';

-- ----------------------------
-- Records of sys_user_role
-- ----------------------------
BEGIN;
INSERT INTO `sys_user_role` VALUES (1, 1);
INSERT INTO `sys_user_role` VALUES (2, 2);
COMMIT;

-- ----------------------------
-- Table structure for sys_wxapp_config
-- ----------------------------
DROP TABLE IF EXISTS `sys_wxapp_config`;
CREATE TABLE `sys_wxapp_config` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `app_type` varchar(10)  NOT NULL COMMENT '应用类型',
  `app_id` varchar(50)  NOT NULL COMMENT '微信应用ID',
  `secret` varchar(100)  DEFAULT NULL COMMENT '密钥',
  `token` varchar(300)  DEFAULT NULL COMMENT 'token',
  `token_failure_time` datetime DEFAULT NULL COMMENT 'token失效时间',
  `is_delete` char(1)  NOT NULL DEFAULT '1' COMMENT '逻辑删除(1可用，0删除)',
  `remark` varchar(255)  DEFAULT NULL COMMENT '备注',
  `create_by` varchar(30)  DEFAULT NULL COMMENT '创建人',
  `update_by` varchar(30)  DEFAULT NULL COMMENT '修改人',
  `create_time` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `update_time` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  PRIMARY KEY (`id`) USING BTREE,
  UNIQUE KEY `syswxappconf_idx2` (`app_id`) USING BTREE,
  KEY `syswxappconf_idx1` (`app_type`,`is_delete`) USING BTREE
) ENGINE=InnoDB   COMMENT='微信应用配置表';
